diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-25 11:34:59 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-11-25 11:35:33 +0800 |
commit | c2a9c64d231ff234a32189996ed88a8c91c0c046 (patch) | |
tree | 3b21c395566fa868d5d0bd03366a33e9f90a37f1 | |
parent | e2a8ea76ea2f7d5e71441f0fac75df35caf85c03 (diff) | |
download | rneovim-c2a9c64d231ff234a32189996ed88a8c91c0c046.tar.gz rneovim-c2a9c64d231ff234a32189996ed88a8c91c0c046.tar.bz2 rneovim-c2a9c64d231ff234a32189996ed88a8c91c0c046.zip |
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>
-rw-r--r-- | src/nvim/os/time.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/os/time.c b/src/nvim/os/time.c index 7ba2bd155e..7fc43d7991 100644 --- 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); |