Piotr Caban : msvcrt: Fix '%z' format handling in strftime.
Module: wine Branch: master Commit: 5823e5b9140dc3b6c82c16912f552e7625caf08c URL: http://source.winehq.org/git/wine.git/?a=commit;h=5823e5b9140dc3b6c82c16912f... Author: Piotr Caban <piotr(a)codeweavers.com> Date: Wed May 3 12:37:26 2017 +0200 msvcrt: Fix '%z' format handling in strftime. Signed-off-by: Piotr Caban <piotr(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/msvcrt/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msvcrt/time.c b/dlls/msvcrt/time.c index 480d533..57657ca 100644 --- a/dlls/msvcrt/time.c +++ b/dlls/msvcrt/time.c @@ -1204,7 +1204,7 @@ static MSVCRT_size_t strftime_helper(char *str, MSVCRT_size_t max, const char *f MSVCRT__tzset(); if(MSVCRT__get_tzname(&tmp, str+ret, max-ret, mstm->tm_isdst ? 1 : 0)) return 0; - ret += tmp; + ret += tmp-1; break; case 'U': case 'W':
participants (1)
-
Alexandre Julliard