Minor fix.
* mh/prompter.c (main): Append terminating \0 to the opool.
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -248,6 +248,7 @@ main (int argc, char **argv) | ... | @@ -248,6 +248,7 @@ main (int argc, char **argv) |
248 | } | 248 | } |
249 | while (cont); | 249 | while (cont); |
250 | 250 | ||
251 | mu_opool_append_char (opool, 0); | ||
251 | newval = mu_opool_finish (opool, NULL); | 252 | newval = mu_opool_finish (opool, NULL); |
252 | if (!is_empty_string (newval)) | 253 | if (!is_empty_string (newval)) |
253 | mu_stream_printf (tmp, "%s: %s\n", name, newval); | 254 | mu_stream_printf (tmp, "%s: %s\n", name, newval); | ... | ... |
-
Please register or sign in to post a comment