diff options
author | Bram Moolenaar <Bram@vim.org> | 2011-04-11 16:56:35 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2011-04-11 16:56:35 +0200 |
commit | ef9d6aa70d68cd3a765ed55f4c3781aeb8aeea23 (patch) | |
tree | e099b52d0ebf51c535ebe3cd875d8f70c06332df /src/buffer.c | |
parent | 0d35e91abfa9e17f7c554bfd33b119b879448c72 (diff) | |
download | vim-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/buffer.c')
-rw-r--r-- | src/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c index 420b5ea91..f92512983 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -3176,7 +3176,7 @@ maketitle() /* format: "fname + (path) (1 of 2) - VIM" */ if (curbuf->b_fname == NULL) - STRCPY(buf, _("[No Name]")); + vim_strncpy(buf, (char_u *)_("[No Name]"), IOSIZE - 100); else { p = transstr(gettail(curbuf->b_fname)); @@ -3232,7 +3232,7 @@ maketitle() if (serverName != NULL) { STRCAT(buf, " - "); - STRCAT(buf, serverName); + vim_strcat(buf, serverName, IOSIZE); } else #endif |