summaryrefslogtreecommitdiff
path: root/src/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/time.c')
-rw-r--r--src/time.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/time.c b/src/time.c
index a28708f9f..6d4ad5d51 100644
--- a/src/time.c
+++ b/src/time.c
@@ -276,8 +276,7 @@ f_strftime(typval_T *argvars, typval_T *rettv)
wp = enc_to_utf16(p, NULL);
if (wp != NULL)
- (void)wcsftime(result_buf, sizeof(result_buf) / sizeof(WCHAR),
- wp, curtime);
+ (void)wcsftime(result_buf, ARRAY_LENGTH(result_buf), wp, curtime);
else
result_buf[0] = NUL;
rettv->vval.v_string = utf16_to_enc(result_buf, NULL);