1
0
forked from aniani/vim

updated for version 7.4b.014

Problem:    Stupid mistake.
Solution:   Changle "len" to "i".
This commit is contained in:
Bram Moolenaar
2013-08-03 17:31:28 +02:00
parent 48483dbaf7
commit f40f4ab8df
2 changed files with 4 additions and 2 deletions

View File

@@ -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 */
}