Commit 6153aa2d authored by Clément Bœsch's avatar Clément Bœsch

avcodec/jacosubdec: check strftime return value

Fixes CID1257004
parent ace91616
......@@ -46,8 +46,8 @@ static int insert_datetime(AVBPrint *dst, const char *in, const char *arg)
struct tm ltime;
localtime_r(&now, &ltime);
strftime(buf, sizeof(buf), arg, &ltime);
av_bprintf(dst, "%s", buf);
if (strftime(buf, sizeof(buf), arg, &ltime))
av_bprintf(dst, "%s", buf);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment