From 49579c96376539607aa6d3412721d0af48415f33 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 5 Apr 2014 22:36:06 +0200 Subject: [PATCH] avformat/cinedec: fix sizeof() Fixes CID1197047 Signed-off-by: Michael Niedermayer --- libavformat/cinedec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/cinedec.c b/libavformat/cinedec.c index 003ca519bc..d3e3e1bc1b 100644 --- a/libavformat/cinedec.c +++ b/libavformat/cinedec.c @@ -74,7 +74,7 @@ static int set_metadata_int(AVDictionary **dict, const char *key, int value) { if (value) { char buf[64]; - snprintf(buf, sizeof(buf - 1), "%i", value); + snprintf(buf, sizeof(buf), "%i", value); buf[sizeof(buf) - 1] = 0; return av_dict_set(dict, key, buf, 0); }