diff options
-rw-r--r-- | win32/mingw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/mingw.c b/win32/mingw.c index e64f48bf1..3a3b3cd63 100644 --- a/win32/mingw.c +++ b/win32/mingw.c | |||
@@ -1377,7 +1377,7 @@ size_t mingw_strftime(char *buf, size_t max, const char *format, const struct tm | |||
1377 | m = t - fmt; | 1377 | m = t - fmt; |
1378 | newfmt = xasprintf("%s%s%s", fmt, replace, t+2); | 1378 | newfmt = xasprintf("%s%s%s", fmt, replace, t+2); |
1379 | free(fmt); | 1379 | free(fmt); |
1380 | t = newfmt + m + strlen(replace); | 1380 | t = newfmt + m + strlen(replace) - 1; |
1381 | fmt = newfmt; | 1381 | fmt = newfmt; |
1382 | } | 1382 | } |
1383 | } | 1383 | } |