Fix potentially unterminated strings

This commit is contained in:
Bernhard Hackl 2017-04-11 06:27:55 -07:00
parent 078359127b
commit ae91d6b4b1
2 changed files with 7 additions and 7 deletions

View file

@ -547,8 +547,8 @@ websocket_open(struct websocket *s, const char *url,
websocket_callback c)
{
int ret;
char host[MAX_HOSTLEN];
char path[MAX_PATHLEN];
char host[MAX_HOSTLEN + 1] = {0};
char path[MAX_PATHLEN + 1] = {0};
uint16_t port;
uip_ipaddr_t addr;