summaryrefslogtreecommitdiff
path: root/util-linux/fdisk_sun.c
diff options
context:
space:
mode:
authorDenys Vlasenko2018-07-25 12:08:26 +0200
committerDenys Vlasenko2018-07-30 18:02:27 +0200
commit096ccd6a691f3c5e5cdae1a67fd45b9340b14f27 (patch)
treed13e09d43ee04b9652271ea085b4d20897ff3dcd /util-linux/fdisk_sun.c
parentd674b2e2aeb10f0755a197084f962287740fbc50 (diff)
downloadbusybox-096ccd6a691f3c5e5cdae1a67fd45b9340b14f27.zip
busybox-096ccd6a691f3c5e5cdae1a67fd45b9340b14f27.tar.gz
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 'util-linux/fdisk_sun.c')
-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 e32740d..f62a53a 100644
--- a/util-linux/fdisk_sun.c
+++ b/util-linux/fdisk_sun.c
@@ -606,7 +606,7 @@ sun_change_sysid(int i, int sys)
"there may destroy your partition table and bootblock.\n"
"Type YES if you're very sure you would like that partition\n"
"tagged with 82 (Linux swap): ");
- if (strcmp (line_ptr, "YES\n"))
+ if (strcmp(line_ptr, "YES\n"))
return;
}
switch (sys) {