1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2019-04-12 21:19:04 +02:00
parent f9b89b4679
commit 04af19637c
4 changed files with 12 additions and 0 deletions

View File

@@ -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);
}