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/gui_w32.c | |
parent | bbebc857507f24c82cd5bb2f80305b74390b4611 (diff) |
updated for version 7.0109v7.0109
Diffstat (limited to 'src/gui_w32.c')
-rw-r--r-- | src/gui_w32.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c index 11d0281a62..f0b47172e6 100644 --- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -3592,8 +3592,7 @@ gui_mch_tearoff( if (label == NULL) break; - STRNCPY(text, menu->name, nameLen); - text[nameLen] = NUL; + vim_strncpy(text, menu->name, nameLen); text = vim_strchr(text, TAB); /* stop at TAB before actext */ if (text == NULL) text = label + nameLen; /* no actext, use whole name */ |