commit c2a9c64d231ff234a32189996ed88a8c91c0c046
parent e2a8ea76ea2f7d5e71441f0fac75df35caf85c03
Author: zeertzjq <zeertzjq@outlook.com>
Date: Fri, 25 Nov 2022 11:34:59 +0800
vim-patch:8.2.4155: translating strftime() argument results in check error
Problem: Translating strftime() argument results in check error.
Solution: Add gettext comment.
https://github.com/vim/vim/commit/7e93577a957e4f402bb690c4c8629fd831e24a9d
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/nvim/os/time.c b/src/nvim/os/time.c
@@ -188,6 +188,7 @@ char *os_ctime_r(const time_t *restrict clock, char *restrict result, size_t res
if (clock_local_ptr == NULL) {
xstrlcpy(result, _("(Invalid)"), result_len);
} else {
+ // xgettext:no-c-format
strftime(result, result_len, _("%a %b %d %H:%M:%S %Y"), clock_local_ptr);
}
xstrlcat(result, "\n", result_len);