commit | f40f4ab8df0bb52a2d5f684d961b7c932c30e5df | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Aug 03 17:31:28 2013 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Aug 03 17:31:28 2013 +0200 |
tree | 0835eacf34f5fe3d9ffca5d75a736720535a4fca | |
parent | 48483dbaf78b4e76e1d61c8c2bd14cb533e4a73b [diff] [blame] |
updated for version 7.4b.014 Problem: Stupid mistake. Solution: Changle "len" to "i".
diff --git a/src/misc1.c b/src/misc1.c index 11f456b..fd5d1fd 100644 --- a/src/misc1.c +++ b/src/misc1.c
@@ -10890,8 +10890,8 @@ { /* 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 */ }