From e491a34e1db884f74c5ddcee481db18e050296bd Mon Sep 17 00:00:00 2001 From: lulf Date: Mon, 15 Jun 2009 16:51:07 +0000 Subject: - The maximum number of heads is 255, not 256. Pointed out by: marcel --- sbin/fdisk/fdisk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/fdisk') diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c index 1e121bb..604cc7d 100644 --- a/sbin/fdisk/fdisk.c +++ b/sbin/fdisk/fdisk.c @@ -1066,8 +1066,8 @@ process_geometry(CMD *command) warnx("ERROR line %d: number of heads not specified", current_line_number); status = 0; - } else if (dos_heads > 256) { - warnx("ERROR line %d: number of heads must be within (1-256)", + } else if (dos_heads > 255) { + warnx("ERROR line %d: number of heads must be within (1-255)", current_line_number); status = 0; } -- cgit v1.1