summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-04-16 22:42:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:24 -0500
commite459831b5a672683dcf63cac6ebb4b76e62e6549 (patch)
treea96c8d4eeec690b425ff5b766b660c6f8344af84 /source3/param
parent615f025654fd18eac77a88b71f36ca5339ffd73d (diff)
downloadsamba-e459831b5a672683dcf63cac6ebb4b76e62e6549.tar.gz
samba-e459831b5a672683dcf63cac6ebb4b76e62e6549.tar.bz2
samba-e459831b5a672683dcf63cac6ebb4b76e62e6549.zip
r22285: Allow arbitrary bases in int and ulong parsing.
Jeremy. (This used to be commit c1f1949ff134c343cb0ee8f8e46cf58b1dfe97c7)
Diffstat (limited to 'source3/param')
-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);
}
/*******************************************************************