From: Bram Moolenaar Date: Sat, 3 Aug 2013 12:10:50 +0000 (+0200) Subject: updated for version 7.4b.012 X-Git-Tag: v7.4b.012 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb332a2b33ddbbaa172b32148640b9b3c92a8dc0;p=vim updated for version 7.4b.012 Problem: Output from a shell command is truncated at a NUL. (lcd 47) Solution: Change every NUL into an SOH. --- diff --git a/src/misc1.c b/src/misc1.c index 958163178..11f456b80 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -10887,7 +10887,14 @@ get_cmd_output(cmd, infile, flags) buffer = NULL; } else + { + /* Change NUL into SOH, otherwise the string is truncated. */ + for (i = 0; i < len; ++i) + if (buffer[len] == NUL) + buffer[len] = 1; + buffer[len] = NUL; /* make sure the buffer is terminated */ + } done: vim_free(tempname); diff --git a/src/version.c b/src/version.c index 676245d7b..bf7c0e194 100644 --- a/src/version.c +++ b/src/version.c @@ -727,6 +727,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 12, /**/ 11, /**/