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/eval.c | |
parent | bbebc857507f24c82cd5bb2f80305b74390b4611 (diff) | |
download | vim-git-ce0842a6ee214621ccf03693ab77a94851c09ab0.tar.gz |
updated for version 7.0109v7.0109
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/eval.c b/src/eval.c index a1404c224..6adfb4d40 100644 --- a/src/eval.c +++ b/src/eval.c @@ -6197,8 +6197,7 @@ dict_find(d, key, len) else { /* Avoid a malloc/free by using buf[]. */ - STRNCPY(buf, key, len); - buf[len] = NUL; + vim_strncpy(buf, key, len); akey = buf; } @@ -10681,10 +10680,7 @@ f_inputdialog(argvars, rettv) message = get_tv_string_chk(&argvars[0]); if (argvars[1].v_type != VAR_UNKNOWN && (defstr = get_tv_string_buf_chk(&argvars[1], buf)) != NULL) - { - STRNCPY(IObuff, defstr, IOSIZE); - IObuff[IOSIZE - 1] = NUL; - } + vim_strncpy(IObuff, defstr, IOSIZE - 1); else IObuff[0] = NUL; if (message != NULL && defstr != NULL |