Fri Jan 22 01:41:25 1999 Timur I. Bakeyev <mc@bat.ru>

* undelfs.c: Found one more unconverted realloc() call.
This commit is contained in:
Timur Bakeyev 1999-01-21 22:41:36 +00:00
parent 798749403a
commit 6f7a1992e7
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Fri Jan 22 01:41:25 1999 Timur I. Bakeyev <mc@bat.ru>
* undelfs.c: Found one more unconverted realloc() call.
1999-01-20 Miguel de Icaza <miguel@nuclecu.unam.mx>
* undelfs.c (undelfs_loaddel): Fix Timur's changes.

View File

@ -219,8 +219,7 @@ undelfs_loaddel (void)
if (lsd.free_blocks && !lsd.bad_blocks) {
if (num_delarray >= max_delarray) {
max_delarray += 50;
delarray = realloc(delarray,
max_delarray * sizeof(struct deleted_info));
delarray = g_renew (struct deleted_info, delarray, max_delarray);
if (!delarray) {
message_1s (1, undelfserr, " no more memory while reallocating array ");
goto error_out;