Browse Source

Fix #2366

pull/2383/head
Max Lv 5 years ago
parent
commit
9c935f762e
1 changed files with 1 additions and 1 deletions
  1. 2
      src/manager.c

2
src/manager.c

@ -673,7 +673,7 @@ manager_recv_cb(EV_P_ ev_io *w, int revents)
}
size_t pos = strlen(buf);
strcpy(buf + pos - 1, "\n]"); // Remove trailing ","
strcpy(buf + max(pos - 1, 1), "\n]"); // Remove trailing ","
pos = strlen(buf);
if (sendto(manager->fd, buf, pos, 0, (struct sockaddr *)&claddr, len)
!= pos) {

Loading…
Cancel
Save