mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-20 10:43:29 +00:00
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:
parent
decc3845c5
commit
47c721b32e
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue