Subject: Re: bin/37414: fdisk suggests input formats it doesn't accept
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, rillig@NetBSD.org>
From: dieter roelants <dieter.NetBSD@pandora.be>
List: netbsd-bugs
Date: 12/02/2007 18:10:03
The following reply was made to PR bin/37414; it has been noted by GNATS.

From: dieter roelants <dieter.NetBSD@pandora.be>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/37414: fdisk suggests input formats it doesn't accept
Date: Sun, 2 Dec 2007 19:09:59 +0100

 On Sun,  2 Dec 2007 17:45:02 +0000 (UTC)
 Roland Illig <rillig@NetBSD.org> wrote:
 
 >  Looks good to me, although people that are used to the old format (400M) 
 >  cannot use that anymore.
 
 Yes they can, unless I've made a mistake. The len variable used by
 strncasecmp here is the length of cp until the next whitespace, so in
 the case of 400M, only one byte is checked.
 
 >  the m *= strncasecmp() expressions looked weird to me at the first 
 >  sight, but now I've understood them.
 
 It took me some time to understand the original code as well. :)
 
 dieter