diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2011-09-30 13:48:21 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2011-09-30 13:48:21 +0200 |
commit | d466186b241d36ab51f43c7c2f61037624735bd3 (patch) | |
tree | e1071d07e96a17d26f93dbc7d8f5b573dee411c9 /nslcd/rpc.c | |
parent | e284523521a8aa2b529240ea741978bfdd723215 (diff) |
Use an explicit base of 10 for strtouid()/strtogid()/strtol() calls
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1547 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/rpc.c')
-rw-r--r-- | nslcd/rpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nslcd/rpc.c b/nslcd/rpc.c index 68d0f9b..90cb89e 100644 --- a/nslcd/rpc.c +++ b/nslcd/rpc.c @@ -145,7 +145,7 @@ static int write_rpc(TFILE *fp,MYLDAP_ENTRY *entry,const char *reqname) myldap_get_dn(entry),attmap_rpc_oncRpcNumber); } errno=0; - number=(int)strtol(numbers[0],&tmp,0); + number=(int)strtol(numbers[0],&tmp,10); if ((*(numbers[0])=='\0')||(*tmp!='\0')) { log_log(LOG_WARNING,"%s: %s: non-numeric", |