ffmpeg | branch: master | Paras Chadha <[email protected]> | Sun Sep  3 
00:55:22 2017 +0530| [6ce4a635ed19db9003dae36f52d432f2b8988bb7] | committer: 
James Almer

avformat/fitsenc: fill header line with spaces

Signed-off-by: Paras Chadha <[email protected]>
Signed-off-by: James Almer <[email protected]>

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

 libavformat/fitsenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to