summaryrefslogtreecommitdiff
path: root/nslcd/common.c
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2012-05-20 19:53:56 +0000
committerArthur de Jong <arthur@arthurdejong.org>2012-05-20 19:53:56 +0000
commit2162182c3ec6e0b31ea88f4ec4843ed986ea9b7a (patch)
treed1d59aefedd79828bed75030f604bd39db0527dc /nslcd/common.c
parentc23fb324eae950a912d39a0bb1287efa9b444329 (diff)
implement extra range checking of all numeric values
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1694 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/common.c')
-rw-r--r--nslcd/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nslcd/common.c b/nslcd/common.c
index 829f042..ec20693 100644
--- a/nslcd/common.c
+++ b/nslcd/common.c
@@ -3,7 +3,7 @@
This file is part of the nss-pam-ldapd library.
Copyright (C) 2006 West Consulting
- Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Arthur de Jong
+ Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Arthur de Jong
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -285,7 +285,7 @@ unsigned int strtoui(const char *nptr,char **endptr,int base)
errno=ERANGE;
return UINT_MAX;
}
- /* If errno was set by strtoull, we'll pass it back as-is */
+ /* If errno was set by strtoul, we'll pass it back as-is */
return (unsigned int)val;
}
#endif /* WANT_STRTOUI */