diff options
author | lulf <lulf@FreeBSD.org> | 2009-06-15 16:51:07 +0000 |
---|---|---|
committer | lulf <lulf@FreeBSD.org> | 2009-06-15 16:51:07 +0000 |
commit | e491a34e1db884f74c5ddcee481db18e050296bd (patch) | |
tree | 1c2f5a5f7c2ca0973cbd891543b18c81389d2e87 /sbin/fdisk | |
parent | eca2e0d9c3e04b2b4cc06ef5f641401df4853889 (diff) | |
download | FreeBSD-src-e491a34e1db884f74c5ddcee481db18e050296bd.zip FreeBSD-src-e491a34e1db884f74c5ddcee481db18e050296bd.tar.gz |
- The maximum number of heads is 255, not 256.
Pointed out by: marcel
Diffstat (limited to 'sbin/fdisk')
-rw-r--r-- | sbin/fdisk/fdisk.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |