Null terminate the right buffer....
This commit is contained in:
parent
c28cc404ac
commit
cecad209a4
|
|
@ -791,7 +791,7 @@ struct client_t *accept_client_for_listener(struct listen_t *l, int fd, char *ad
|
|||
}
|
||||
if (l->filter_s) {
|
||||
strncpy(c->filter_s, l->filter_s, sizeof(c->filter_s));
|
||||
l->filter_s[FILTER_S_SIZE-1] = 0;
|
||||
c->filter_s[FILTER_S_SIZE-1] = 0;
|
||||
}
|
||||
|
||||
return c;
|
||||
|
|
|
|||
Loading…
Reference in New Issue