diff options
Diffstat (limited to 'core/screenshot.c')
-rw-r--r-- | core/screenshot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/screenshot.c b/core/screenshot.c index 6b07bce5a0..ee568d4b3d 100644 --- a/core/screenshot.c +++ b/core/screenshot.c @@ -187,11 +187,11 @@ static char *create_fname(struct MPContext *mpctx, char *template, break; } case 't': { - char fmt = *template; - if (!fmt) + char tfmt = *template; + if (!tfmt) goto error_exit; template++; - char fmtstr[] = {'%', fmt, '\0'}; + char fmtstr[] = {'%', tfmt, '\0'}; char buffer[80]; if (strftime(buffer, sizeof(buffer), fmtstr, local_time) == 0) buffer[0] = '\0'; |