mirror of
https://github.com/neovim/neovim.git
synced 2025-10-12 12:56:04 +00:00
vim-patch:8.2.4155: translating strftime() argument results in check error
Problem: Translating strftime() argument results in check error.
Solution: Add gettext comment.
7e93577a95
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -188,6 +188,7 @@ char *os_ctime_r(const time_t *restrict clock, char *restrict result, size_t res
|
|||||||
if (clock_local_ptr == NULL) {
|
if (clock_local_ptr == NULL) {
|
||||||
xstrlcpy(result, _("(Invalid)"), result_len);
|
xstrlcpy(result, _("(Invalid)"), result_len);
|
||||||
} else {
|
} else {
|
||||||
|
// xgettext:no-c-format
|
||||||
strftime(result, result_len, _("%a %b %d %H:%M:%S %Y"), clock_local_ptr);
|
strftime(result, result_len, _("%a %b %d %H:%M:%S %Y"), clock_local_ptr);
|
||||||
}
|
}
|
||||||
xstrlcat(result, "\n", result_len);
|
xstrlcat(result, "\n", result_len);
|
||||||
|
Reference in New Issue
Block a user