From 7e93577a957e4f402bb690c4c8629fd831e24a9d Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 20 Jan 2022 14:25:57 +0000 Subject: patch 8.2.4155: translating strftime() argument results in check error Problem: Translating strftime() argument results in check error. Solution: Add gettext comment. --- src/time.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/time.c') diff --git a/src/time.c b/src/time.c index 75e7b2546f..020f78dd0e 100644 --- a/src/time.c +++ b/src/time.c @@ -93,6 +93,7 @@ get_ctime(time_t thetime, int add_newline) vim_strncpy((char_u *)buf, (char_u *)_("(Invalid)"), sizeof(buf) - 1); else { + // xgettext:no-c-format (void)strftime(buf, sizeof(buf) - 1, _("%a %b %d %H:%M:%S %Y"), curtime); # ifdef MSWIN -- cgit v1.2.3