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/tag.c | |
parent | 0d35e91abfa9e17f7c554bfd33b119b879448c72 (diff) |
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/tag.c')
-rw-r--r-- | src/tag.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -806,7 +806,7 @@ do_tag(tag, type, count, forceit, verbose) p = tag_full_fname(&tagp); if (p == NULL) continue; - STRCPY(fname, p); + vim_strncpy(fname, p, MAXPATHL); vim_free(p); /* |