mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
fix a bug found by halakar
This commit is contained in:
parent
130e6c1a3f
commit
120bd66ccc
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ read_data (QFile *f, int len)
|
|||
Qungetc (f, c);
|
||||
}
|
||||
if (count && count != len)
|
||||
realloc (data, count);
|
||||
data = realloc (data, count);
|
||||
if (!count) {
|
||||
free (data);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue