Browse Source

properly terminate string which recvfrom does not do

pull/2842/head
Gilles Depeyrot 3 years ago
committed by Max Lv
parent
commit
0a7d178134
1 changed files with 3 additions and 0 deletions
  1. 3
      src/manager.c

3
src/manager.c

@ -614,6 +614,9 @@ manager_recv_cb(EV_P_ ev_io *w, int revents)
return;
}
// properly terminate string which recvfrom does not do
buf[r] = '\0';
char *action = get_action(buf, r);
if (action == NULL) {
return;

Loading…
Cancel
Save