mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
Correct the size adjustment for qwe's newstr.
It seems the correct interpretation is that the size parameter includes the trailing 0 (going by mvdsv source).
This commit is contained in:
parent
d4f4e450e6
commit
20ad50407d
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ PF_newstr (progs_t *pr)
|
|||
|
||||
if (pr->pr_argc > 1 && P_FLOAT (pr, 1) > dstr->size) {
|
||||
int s = dstr->size;
|
||||
dstr->size = P_FLOAT (pr, 1) + 1;
|
||||
dstr->size = P_FLOAT (pr, 1);
|
||||
dstring_adjust (dstr);
|
||||
memset (dstr->str + s, 0, dstr->size - s);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue