diff -ur parted.orig/parted/parted.c parted-1.8.1/parted/parted.c --- parted.orig/parted/parted.c 2006-12-03 17:31:37.000000000 -0800 +++ parted-1.8.1/parted/parted.c 2007-01-04 18:10:24.000000000 -0800 @@ -207,7 +207,7 @@ } static int -_disk_warn_loss (PedDisk* disk) +_disk_warn_loss (PedDevice* dev) { return ped_exception_throw ( PED_EXCEPTION_WARNING, @@ -215,7 +215,7 @@ _("The existing disk label on %s will be destroyed " "and all data on this disk will be lost. Do you " "want to continue?"), - disk->dev->path) + dev->path) == PED_EXCEPTION_YES; } @@ -580,7 +580,7 @@ if (!disk) ped_exception_catch (); ped_exception_leave_all (); - if (!_disk_warn_loss (disk)) + if (!_disk_warn_loss (* dev)) goto error_destroy_disk; if (disk) {