1
0
forked from aniani/vim

updated for version 7.0109

This commit is contained in:
Bram Moolenaar
2005-07-18 21:58:11 +00:00
parent bbebc85750
commit ce0842a6ee
30 changed files with 178 additions and 134 deletions

View File

@@ -1258,8 +1258,7 @@ set_context_in_menu_cmd(xp, cmd, arg, forceit)
path_name = alloc((unsigned)(after_dot - arg));
if (path_name == NULL)
return NULL;
STRNCPY(path_name, arg, after_dot - arg - 1);
path_name[after_dot - arg - 1] = NUL;
vim_strncpy(path_name, arg, after_dot - arg - 1);
}
name = path_name;
while (name != NULL && *name)