aboutsummaryrefslogtreecommitdiff
path: root/util-linux/fdisk_sun.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-07-25 12:08:26 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2018-07-25 12:08:26 +0200
commit163e637ffb47425d9f5027755b7cb4877d77b0cb (patch)
tree6be5abf74361fc15470099ebfe48d192ba49fdd8 /util-linux/fdisk_sun.c
parent81de30de05beebabfa72f2a01ec4f33e9a1923e3 (diff)
downloadbusybox-w32-163e637ffb47425d9f5027755b7cb4877d77b0cb.tar.gz
busybox-w32-163e637ffb47425d9f5027755b7cb4877d77b0cb.tar.bz2
busybox-w32-163e637ffb47425d9f5027755b7cb4877d77b0cb.zip
fdisk: use strtoul[l] instead of atoi, closes 11176
Couldn't create partitions bigger than 1TB (when using 512 bytes sectors, on 32 bits architectures). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to '')
-rw-r--r--util-linux/fdisk_sun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/fdisk_sun.c b/util-linux/fdisk_sun.c
index e32740dea..f62a53ac6 100644
--- a/util-linux/fdisk_sun.c
+++ b/util-linux/fdisk_sun.c
@@ -606,7 +606,7 @@ sun_change_sysid(int i, int sys)
606 "there may destroy your partition table and bootblock.\n" 606 "there may destroy your partition table and bootblock.\n"
607 "Type YES if you're very sure you would like that partition\n" 607 "Type YES if you're very sure you would like that partition\n"
608 "tagged with 82 (Linux swap): "); 608 "tagged with 82 (Linux swap): ");
609 if (strcmp (line_ptr, "YES\n")) 609 if (strcmp(line_ptr, "YES\n"))
610 return; 610 return;
611 } 611 }
612 switch (sys) { 612 switch (sys) {