From 87f6f15460983119eead5ae00bda1822f80d75fb Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 24 Dec 2016 00:07:16 +0100 Subject: [PATCH] tools/zmqsend: Do not truncate fgetc() return Fixes CID1396836 Signed-off-by: Michael Niedermayer --- tools/zmqsend.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/zmqsend.c b/tools/zmqsend.c index 6148bd623c..7bd7fe4199 100644 --- a/tools/zmqsend.c +++ b/tools/zmqsend.c @@ -52,7 +52,8 @@ static void usage(void) int main(int argc, char **argv) { AVBPrint src; - char c, *src_buf, *recv_buf; + char *src_buf, *recv_buf; + int c; int recv_buf_size, ret = 0; void *zmq_ctx, *socket; const char *bind_address = "tcp://localhost:5555";