This commit is contained in:
Max Lv
2019-05-06 00:07:56 -04:00
parent 34450e8da6
commit 9c935f762e
+1 -1
View File
@@ -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) {