comparison src/channel.c @ 16306:a2c598cbe220 v8.1.1158

patch 8.1.1158: json encoded string is sometimes missing the final NUL commit https://github.com/vim/vim/commit/04af19637c14045fa33b99576de4eea1e3524edb Author: Bram Moolenaar <Bram@vim.org> Date: Fri Apr 12 21:19:04 2019 +0200 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.
author Bram Moolenaar <Bram@vim.org>
date Fri, 12 Apr 2019 21:30:04 +0200
parents 78faa25f9698
children 3d6b282e2d6e
comparison
equal deleted inserted replaced
16305:7128a1b06d11 16306:a2c598cbe220
5875 { 5875 {
5876 if (i > 0) 5876 if (i > 0)
5877 ga_concat(&ga, (char_u *)" "); 5877 ga_concat(&ga, (char_u *)" ");
5878 ga_concat(&ga, (char_u *)argv[i]); 5878 ga_concat(&ga, (char_u *)argv[i]);
5879 } 5879 }
5880 ga_append(&ga, NUL);
5880 ch_log(NULL, "Starting job: %s", (char *)ga.ga_data); 5881 ch_log(NULL, "Starting job: %s", (char *)ga.ga_data);
5881 ga_clear(&ga); 5882 ga_clear(&ga);
5882 } 5883 }
5883 mch_job_start(argv, job, &opt, is_terminal); 5884 mch_job_start(argv, job, &opt, is_terminal);
5884 #else 5885 #else