Null terminate the right buffer....

This commit is contained in:
Heikki Hannikainen 2013-12-19 23:49:48 +02:00
parent c28cc404ac
commit cecad209a4
1 changed files with 1 additions and 1 deletions

View File

@ -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;