Fix for malloc of wrong size, (crashed if ramdisk larger than kernel)

This commit is contained in:
Martin Johnson 2011-06-09 10:51:50 +12:00
parent c3aa51b9af
commit 819366a970

View File

@ -801,7 +801,7 @@ void extract_ramdisk(t_abootimg* img)
printf ("extracting ramdisk in %s\n", img->ramdisk_fname);
void* r = malloc(ksize);
void* r = malloc(rsize);
if (!r)
abort_perror(NULL);