fix strncpy not leaving null terminator space
This commit is contained in:
parent
db915b2c56
commit
716a29545f
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue