mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 21:20:33 +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;
|
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) {
|
if (options.verbosity >= 0) {
|
||||||
printf ("%6i strofs\n", pr.strings->size);
|
printf ("%6i strofs\n", pr.strings->size);
|
||||||
|
|
Loading…
Reference in a new issue