From 0c236a76cb4110d250f9efab9815a0c14c891daf Mon Sep 17 00:00:00 2001 From: Greg Whiteley Date: Thu, 23 Mar 2023 16:55:03 +1100 Subject: [PATCH] Honour partition number from originally supplied device Use the command-line parameter to determine the partition number, not the stripped device Issue #31 --- fatresize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fatresize.c b/fatresize.c index 414f9e7..09bdc74 100644 --- a/fatresize.c +++ b/fatresize.c @@ -208,7 +208,7 @@ static int get_device(char *dev) { return 0; } } else { - opts.pnum = get_partnum(devname); + opts.pnum = get_partnum(dev); } ped_device_destroy(peddev); opts.device = devname;