aboutsummaryrefslogtreecommitdiff
path: root/morecore.c
diff options
context:
space:
mode:
authoraglitke <aglitke@aglitke.localdomain>2006-03-22 10:00:52 -0600
committeraglitke <aglitke@aglitke.localdomain>2006-03-22 10:00:52 -0600
commitff1d1bdc172884e6d17fbfbb3a8c58f49cdb76f6 (patch)
tree85314ace60938fd3187cab747faf1c4123e1698e /morecore.c
parent0a1183be6d8681ddf7a6403faba765d8ddfc6281 (diff)
downloadlibhugetlbfs-ff1d1bdc172884e6d17fbfbb3a8c58f49cdb76f6.tar.gz
Use strtoul (not strtol) when converting MORECORE_HEAPBASE to a number
Diffstat (limited to 'morecore.c')
-rw-r--r--morecore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/morecore.c b/morecore.c
index 2857cb2..8bb666f 100644
--- a/morecore.c
+++ b/morecore.c
@@ -119,7 +119,7 @@ static void __attribute__((constructor)) setup_morecore(void)
env = getenv("HUGETLB_MORECORE_HEAPBASE");
if (env) {
- heapaddr = strtol(env, &ep, 16);
+ heapaddr = strtoul(env, &ep, 16);
if (*ep != '\0') {
ERROR("Can't parse HUGETLB_MORECORE_HEAPBASE: %s\n",
env);