aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorParas Chadha <paraschadha18@gmail.com>2017-09-03 00:37:22 +0530
committerJames Almer <jamrial@gmail.com>2017-09-12 21:39:57 -0300
commit6ce4a635ed19db9003dae36f52d432f2b8988bb7 (patch)
tree170a271097b8a7a9b5a1d0ac358271c681fe8397
parent9669c05baf37025f6fa038dc6b00b45f9c57de90 (diff)
downloadffmpeg-6ce4a635ed19db9003dae36f52d432f2b8988bb7.tar.gz
avformat/fitsenc: fill header line with spaces
Signed-off-by: Paras Chadha <paraschadha18@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavformat/fitsenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/fitsenc.c b/libavformat/fitsenc.c
index 0dcdcdfb04..7cb171596c 100644
--- a/libavformat/fitsenc.c
+++ b/libavformat/fitsenc.c
@@ -58,7 +58,7 @@ static int write_keyword_value(AVFormatContext *s, const char *keyword, int valu
header[9] = ' ';
ret = snprintf(header + 10, 70, "%d", value);
- header[ret + 10] = ' ';
+ memset(&header[ret + 10], ' ', sizeof(header) - (ret + 10));
avio_write(s->pb, header, sizeof(header));
*lines_written += 1;