fix strncpy not leaving null terminator space

This commit is contained in:
Isaac Connor 2017-12-12 12:53:05 -05:00
parent db915b2c56
commit 716a29545f
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ int hacked_up_context2_for_older_ffmpeg(AVFormatContext **avctx, AVOutputFormat
} }
#endif #endif
if (filename) strncpy(s->filename, filename, sizeof(s->filename)); if (filename) strncpy(s->filename, filename, sizeof(s->filename)-1);
*avctx = s; *avctx = s;
return 0; return 0;
} }