Commit 1a8279af 1a8279af0d705aa7121805613fcba9963fb1b4ec by Sergey Poznyakoff

Minor fix.

* mh/prompter.c (main): Append terminating \0 to the opool.
1 parent 820568fb
...@@ -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);
......