1
0
forked from aniani/vim

updated for version 7.3.160

Problem:    Unsafe string copying.
Solution:   Use vim_strncpy() instead of strcpy().  Use vim_strcat() instead
            of strcat().
This commit is contained in:
Bram Moolenaar
2011-04-11 16:56:35 +02:00
parent 0d35e91abf
commit ef9d6aa70d
13 changed files with 63 additions and 32 deletions

View File

@@ -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);
/*