mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 09:51:41 +00:00
Use the already calculated string length.
No point doing it twice.
This commit is contained in:
parent
9155338404
commit
d6bb5bec86
1 changed files with 1 additions and 1 deletions
|
@ -917,7 +917,7 @@ write_string (dstring_t *dstr, const char *str)
|
|||
return;
|
||||
}
|
||||
// assume worst case of all octal chars plus two quotes.
|
||||
dst = dstring_reservestr (dstr, strlen (str) * 4 + 2);
|
||||
dst = dstring_reservestr (dstr, len * 4 + 2);
|
||||
*dst++= '\"';
|
||||
while (*str) {
|
||||
if (*str && isascii ((byte) *str) && isprint ((byte) *str)
|
||||
|
|
Loading…
Reference in a new issue