diff --git a/extendedcommands.c b/extendedcommands.c index b691d10..d263405 100644 --- a/extendedcommands.c +++ b/extendedcommands.c @@ -549,6 +549,7 @@ void show_partition_menu() static char* confirm_format = "Confirm format?"; static char* confirm = "Yes - Format"; + char confirm_string[255]; for (;;) { @@ -602,7 +603,9 @@ void show_partition_menu() FormatMenuEntry* e = &format_menue[chosen_item]; Volume* v = e->v; - if (!confirm_selection(confirm_format, confirm)) + sprintf(confirm_string, "%s - %s", v->mount_point, confirm_format); + + if (!confirm_selection(confirm_string, confirm)) continue; ui_print("Formatting %s...\n", v->mount_point); if (0 != format_volume(v->mount_point))