diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-08-03 17:31:28 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-08-03 17:31:28 +0200 |
commit | f40f4ab8df0bb52a2d5f684d961b7c932c30e5df (patch) | |
tree | 0835eacf34f5fe3d9ffca5d75a736720535a4fca /src/misc1.c | |
parent | 48483dbaf78b4e76e1d61c8c2bd14cb533e4a73b (diff) | |
download | vim-f40f4ab8df0bb52a2d5f684d961b7c932c30e5df.zip |
updated for version 7.4b.014
Problem: Stupid mistake.
Solution: Changle "len" to "i".
Diffstat (limited to 'src/misc1.c')
-rw-r--r-- | src/misc1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc1.c b/src/misc1.c index 11f456b80..fd5d1fda8 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -10890,8 +10890,8 @@ get_cmd_output(cmd, infile, flags) { /* Change NUL into SOH, otherwise the string is truncated. */ for (i = 0; i < len; ++i) - if (buffer[len] == NUL) - buffer[len] = 1; + if (buffer[i] == NUL) + buffer[i] = 1; buffer[len] = NUL; /* make sure the buffer is terminated */ } |