summarylogtreecommitdiffstats
path: root/fix-compiler.patch
blob: dc9241578d2044c7325de4e270f8661a19043df2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -Nrup a/misc.h b/misc.h
--- a/misc.h
+++ b/misc.h
@@ -180,7 +180,7 @@ static inline const char* av_err2string(int errnum)
 
 	idx = (idx + 1) % 3;
 	av_make_error_string(buf, AV_ERROR_MAX_STRING_SIZE, errnum);
-	snprintf(str[idx], sizeof(str[idx]), buf);
+	snprintf(str[idx], sizeof(str[idx]), "%s", buf);
 
 	return str[idx];
 }