mirror of https://github.com/MidnightCommander/mc
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:
parent
798749403a
commit
6f7a1992e7
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue