]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsblk: fix strtoul() usage [coverity scan]
authorKarel Zak <kzak@redhat.com>
Fri, 11 Mar 2011 12:36:00 +0000 (13:36 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 18 Apr 2011 12:49:47 +0000 (14:49 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/lsblk.c

index a13b7b7ced6c3e91c37d1aa6e4474524a4bdb5d7..a7705a31c09e5bd51a82ec08c44c36e763855eba 100644 (file)
@@ -827,7 +827,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);