diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-07-18 21:43:02 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-07-18 21:43:02 +0000 |
commit | fe3ca8ddd9b85240387b6fa7934af3317e25b731 (patch) | |
tree | c855bb725bd10a5a00670bdd43218dfc17041832 /src/gui_w48.c | |
parent | b635633989f0ff5a5dbb564d65d332741f0e3e8d (diff) |
updated for version 7.0109
Diffstat (limited to 'src/gui_w48.c')
-rw-r--r-- | src/gui_w48.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/gui_w48.c b/src/gui_w48.c index 97a0ca00ef..9a0247f4da 100644 --- a/src/gui_w48.c +++ b/src/gui_w48.c @@ -2194,9 +2194,8 @@ initialise_findrep(char_u *initial_string) s_findrep_struct.Flags |= FR_WHOLEWORD; if (entry_text != NULL && *entry_text != NUL) { - STRNCPY(s_findrep_struct.lpstrFindWhat, entry_text, - s_findrep_struct.wFindWhatLen); - s_findrep_struct.lpstrFindWhat[s_findrep_struct.wFindWhatLen - 1] = NUL; + vim_strncpy(s_findrep_struct.lpstrFindWhat, entry_text, + s_findrep_struct.wFindWhatLen - 1); s_findrep_struct.lpstrReplaceWith[0] = NUL; } vim_free(entry_text); @@ -3102,10 +3101,7 @@ gui_mch_browse( if (dflt == NULL) fileBuf[0] = NUL; else - { - STRNCPY(fileBuf, dflt, MAXPATHL - 1); - fileBuf[MAXPATHL - 1] = NUL; - } + vim_strncpy(fileBuf, dflt, MAXPATHL - 1); /* Convert the filter to Windows format. */ filterp = convert_filter(filter); |