Commit fc22ddf3 authored by dionoea's avatar dionoea
Browse files

Sanitize output from str_format() before using it to build the snapshot's filename.

parent 1756ffef
......@@ -150,7 +150,10 @@ int vout_snapshot_SaveImage(char **name, int *sequential,
char *prefix = NULL;
if (cfg->prefix_fmt)
prefix = str_format(object, cfg->prefix_fmt);
if (!prefix) {
if (prefix)
prefix = strdup("vlcsnap-");
if (!prefix)
goto error;
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