summaryrefslogtreecommitdiff
path: root/src/menu.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-07-18 21:58:11 +0000
committerBram Moolenaar <Bram@vim.org>2005-07-18 21:58:11 +0000
commitce0842a6ee214621ccf03693ab77a94851c09ab0 (patch)
tree1dd3965d94b6497335e9c7ca77c0e02a58003218 /src/menu.c
parentbbebc857507f24c82cd5bb2f80305b74390b4611 (diff)
downloadvim-git-ce0842a6ee214621ccf03693ab77a94851c09ab0.tar.gz
updated for version 7.0109v7.0109
Diffstat (limited to 'src/menu.c')
-rw-r--r--src/menu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/menu.c b/src/menu.c
index 08a7314a2..678705694 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -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)