diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-04-12 21:19:04 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-04-12 21:19:04 +0200 |
commit | 04af19637c14045fa33b99576de4eea1e3524edb (patch) | |
tree | 8548d69f19d74f118915299f76ce9c33e0ce0f88 /src/channel.c | |
parent | f9b89b467965802b8d14251c0dd944343796edcd (diff) |
patch 8.1.1158: json encoded string is sometimes missing the final NULv8.1.1158
Problem: Json encoded string is sometimes missing the final NUL.
Solution: Add the NUL. Also for log messages.
Diffstat (limited to 'src/channel.c')
-rw-r--r-- | src/channel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/channel.c b/src/channel.c index 9ce47d3a47..dd47c5b02b 100644 --- a/src/channel.c +++ b/src/channel.c @@ -5877,6 +5877,7 @@ job_start( 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); } |