From: Karel Zak Date: Fri, 11 Mar 2011 12:36:00 +0000 (+0100) Subject: lsblk: fix strtoul() usage [coverity scan] X-Git-Tag: v2.20-rc1~455 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ed34643cbc78a018302789a7c1f51a833f8e5031;p=thirdparty%2Futil-linux.git lsblk: fix strtoul() usage [coverity scan] Signed-off-by: Karel Zak --- diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c index e507b289e8..38326d08ab 100644 --- a/misc-utils/lsblk.c +++ b/misc-utils/lsblk.c @@ -900,7 +900,7 @@ static void parse_excludes(const char *str) while (str && *str) { char *end = NULL; - unsigned int n; + unsigned long n; errno = 0; n = strtoul(str, &end, 10);