Fix potentially unterminated strings
This commit is contained in:
parent
078359127b
commit
ae91d6b4b1
2 changed files with 7 additions and 7 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue