summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/param/loadparm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index ea434e4768..c37fe54418 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -2232,7 +2232,7 @@ static int lp_int(const char *s)
return (-1);
}
- return atoi(s);
+ return (int)strtol(s, NULL, 0);
}
/*******************************************************************
@@ -2246,7 +2246,7 @@ static unsigned long lp_ulong(const char *s)
return (0);
}
- return strtoul(s, NULL, 10);
+ return strtoul(s, NULL, 0);
}
/*******************************************************************