From 7e93577a957e4f402bb690c4c8629fd831e24a9d Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 20 Jan 2022 14:25:57 +0000 Subject: [PATCH] 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 + src/version.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/time.c b/src/time.c index 75e7b2546..020f78dd0 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 diff --git a/src/version.c b/src/version.c index e32abbb79..6cccadfd2 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4155, /**/ 4154, /**/ -- 2.50.1