X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=tools%2Fzmqsend.c;h=f26fa9c1c24301af6dc9a007fd70a949b822d43d;hb=6e30b35b85b81c802e52a1078ec7a3097e353c6d;hp=7bd7fe4199c29b3d62c6293349a0f35ad39a75c0;hpb=41cd5af3250ef976f0a48adeb6dbccc9b2683e58;p=ffmpeg diff --git a/tools/zmqsend.c b/tools/zmqsend.c index 7bd7fe4199c..f26fa9c1c24 100644 --- a/tools/zmqsend.c +++ b/tools/zmqsend.c @@ -155,7 +155,7 @@ int main(int argc, char **argv) ret = 1; goto end; } - memcpy(recv_buf, zmq_msg_data(&msg), recv_buf_size); + memcpy(recv_buf, zmq_msg_data(&msg), recv_buf_size - 1); recv_buf[recv_buf_size-1] = 0; printf("%s\n", recv_buf); zmq_msg_close(&msg);