diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-07-18 21:58:11 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-07-18 21:58:11 +0000 |
commit | ce0842a6ee214621ccf03693ab77a94851c09ab0 (patch) | |
tree | 1dd3965d94b6497335e9c7ca77c0e02a58003218 /src/menu.c | |
parent | bbebc857507f24c82cd5bb2f80305b74390b4611 (diff) | |
download | vim-ce0842a6ee214621ccf03693ab77a94851c09ab0.zip |
updated for version 7.0109
Diffstat (limited to 'src/menu.c')
-rw-r--r-- | src/menu.c | 3 |
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) |