don't ignore the size parameter to newstr

This is an imperfect revision of history.
This commit is contained in:
Bill Currie 2004-11-11 04:16:00 +00:00 committed by Jeff Teunissen
parent 5ef382d2a7
commit 13029212a8
1 changed files with 5 additions and 0 deletions

View File

@ -255,6 +255,11 @@ PF_newstr (progs_t * pr)
dstring_copystr (dstr, s); dstring_copystr (dstr, s);
if (pr->pr_argc > 1 && P_FLOAT (pr, 1) > dstr->size) {
dstr->size = P_FLOAT (pr, 1);
dstring_adjust (dstr);
}
R_STRING (pr) = i; R_STRING (pr) = i;
} }