commit | 04af19637c14045fa33b99576de4eea1e3524edb | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Apr 12 21:19:04 2019 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Apr 12 21:19:04 2019 +0200 |
tree | 8548d69f19d74f118915299f76ce9c33e0ce0f88 | |
parent | f9b89b467965802b8d14251c0dd944343796edcd [diff] [blame] |
patch 8.1.1158: json encoded string is sometimes missing the final NUL Problem: Json encoded string is sometimes missing the final NUL. Solution: Add the NUL. Also for log messages.
diff --git a/src/channel.c b/src/channel.c index 9ce47d3..dd47c5b 100644 --- a/src/channel.c +++ b/src/channel.c
@@ -5877,6 +5877,7 @@ ga_concat(&ga, (char_u *)" "); ga_concat(&ga, (char_u *)argv[i]); } + ga_append(&ga, NUL); ch_log(NULL, "Starting job: %s", (char *)ga.ga_data); ga_clear(&ga); }