mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Ensure any tail bytes in the strings data are zeroed.
This commit is contained in:
parent
2d5d8eda5a
commit
244d969ae3
1 changed files with 2 additions and 1 deletions
|
@ -193,7 +193,8 @@ WriteData (int crc)
|
|||
dd->type |= DEF_SAVEGLOBAL;
|
||||
}
|
||||
|
||||
pr.strings->size = (pr.strings->size + 3) & ~3;
|
||||
while (pr.strings->size & 3)
|
||||
pr.strings->strings[pr.strings->size++] = 0;
|
||||
|
||||
if (options.verbosity >= 0) {
|
||||
printf ("%6i strofs\n", pr.strings->size);
|
||||
|
|
Loading…
Reference in a new issue