[PATCH] fdisk: Backport disk check from util-linux

Lauri Kasanen curaga at operamail.com
Sun May 1 17:20:32 UTC 2011


Hi Denys

+       if (len != 0 && isdigit(disk[len - 1]))

There's no need to check for len being 0 here, because:

sprintf(devname, "/dev/%s", ptname);

The string passed always contains at least 5 chars ("/dev/").

- Lauri

-- 
http://www.fastmail.fm - IMAP accessible web-mail



More information about the busybox mailing list