[FFmpeg-cvslog] tools/zmqsend: Do not truncate fgetc() return

Michael Niedermayer git at videolan.org
Sat Dec 24 15:47:24 EET 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sat Dec 24 00:07:16 2016 +0100| [87f6f15460983119eead5ae00bda1822f80d75fb] | committer: Michael Niedermayer

tools/zmqsend: Do not truncate fgetc() return

Fixes CID1396836

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=87f6f15460983119eead5ae00bda1822f80d75fb
---

 tools/zmqsend.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/zmqsend.c b/tools/zmqsend.c
index 6148bd6..7bd7fe4 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";



More information about the ffmpeg-cvslog mailing list