attempt to regularize atoi mess.
[oweals/busybox.git] / networking / interface.c
index c3cc7c0bc564d4d5cfe3381a464f0b9ff8a813e5..8e2498d27cc56667887fd1c51ddd7b206dfb0ee1 100644 (file)
@@ -363,7 +363,7 @@ static int nstrcmp(const char *a, const char *b)
        }
 
        if (isdigit(*a) && isdigit(*b)) {
-               return atoi(a_ptr) > atoi(b_ptr) ? 1 : -1;
+               return xatoul(a_ptr) > xatoul(b_ptr) ? 1 : -1;
        }
        return *a - *b;
 }