attempt to regularize atoi mess.
[oweals/busybox.git] / util-linux / mount.c
index 141517ba01d4f67ec3979c7ae9617a825e5abec6..531fb4520932d6736ec99d3861112d33c0d6c19e 100644 (file)
@@ -856,7 +856,7 @@ static int nfsmount(struct mntent *mp, int vfsflags, char *filteropts)
        for (opt = strtok(filteropts, ","); opt; opt = strtok(NULL, ",")) {
                char *opteq = strchr(opt, '=');
                if (opteq) {
-                       int val = atoi(opteq + 1);
+                       int val = xatoi_u(opteq + 1);
                        *opteq = '\0';
                        if (!strcmp(opt, "rsize"))
                                data.rsize = val;