# HG changeset patch # User Bram Moolenaar # Date 1375531850 -7200 # Node ID 25f67b62afd8c58b6c661961cc762f00ee89e562 # Parent f12b613858a6400ae69c813ee6104d9e1ae2bd84 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 --- 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 --- a/src/version.c +++ b/src/version.c @@ -728,6 +728,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 12, +/**/ 11, /**/ 10,