diff options
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 27048773e2..ae9bb0fcf3 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -5096,7 +5096,9 @@ check_more(message, forceit) char_u buff[IOSIZE]; if (n == 1) - STRCPY(buff, _("1 more file to edit. Quit anyway?")); + vim_strncpy(buff, + (char_u *)_("1 more file to edit. Quit anyway?"), + IOSIZE - 1); else vim_snprintf((char *)buff, IOSIZE, _("%d more files to edit. Quit anyway?"), n); |