summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-09-29 20:00:58 +0200
committerStephen Gallagher <sgallagh@redhat.com>2011-10-03 10:48:37 -0400
commit95d3cb8d4ff2e3e8fdc186f2ebf617fd29ddfdec (patch)
tree5cf4c7c585dda5455555334d3c32ff56ddce86d2 /src/tools
parentc98298029c51fdbc727536fec7a27795184d04e4 (diff)
downloadsssd-95d3cb8d4ff2e3e8fdc186f2ebf617fd29ddfdec.tar.gz
sssd-95d3cb8d4ff2e3e8fdc186f2ebf617fd29ddfdec.tar.bz2
sssd-95d3cb8d4ff2e3e8fdc186f2ebf617fd29ddfdec.zip
Use explicit base 10 for converting strings to integers
https://fedorahosted.org/sssd/ticket/1013
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/sss_debuglevel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/sss_debuglevel.c b/src/tools/sss_debuglevel.c
index 45723ec2..38262dda 100644
--- a/src/tools/sss_debuglevel.c
+++ b/src/tools/sss_debuglevel.c
@@ -369,7 +369,7 @@ pid_t parse_pid(const char *strpid)
char *endptr;
errno = 0;
- value = strtol(strpid, &endptr, 0);
+ value = strtol(strpid, &endptr, 10);
if ((errno != 0) || (endptr == strpid)
|| ((*endptr != '\0') && (*endptr != '\n'))) {
return 0;