summaryrefslogtreecommitdiff
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-04-11 16:56:35 +0200
committerBram Moolenaar <Bram@vim.org>2011-04-11 16:56:35 +0200
commitef9d6aa70d68cd3a765ed55f4c3781aeb8aeea23 (patch)
treee099b52d0ebf51c535ebe3cd875d8f70c06332df /src/ex_docmd.c
parent0d35e91abfa9e17f7c554bfd33b119b879448c72 (diff)
downloadvim-git-ef9d6aa70d68cd3a765ed55f4c3781aeb8aeea23.tar.gz
updated for version 7.3.160v7.3.160
Problem: Unsafe string copying. Solution: Use vim_strncpy() instead of strcpy(). Use vim_strcat() instead of strcat().
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 27048773e..ae9bb0fcf 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);