fix a bug found by halakar

This commit is contained in:
Bill Currie 2006-07-23 01:33:54 +00:00 committed by Jeff Teunissen
parent 130e6c1a3f
commit 120bd66ccc

View file

@ -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;