Clear the dstring in test-harness's printf builtin.

PR_Sprintf always appends to the result dstring. I'm not sure if this is by
design or a bug, so I'll leave it be for now.
This commit is contained in:
Bill Currie 2012-12-13 14:59:42 +09:00
parent decc3845c5
commit 47c721b32e

View file

@ -52,6 +52,8 @@ bi_printf (progs_t *pr)
if (!dstr)
dstr = dstring_new ();
else
dstring_clear (dstr);
PR_Sprintf (pr, dstr, "bi_printf", fmt, count, args);
if (dstr->str)