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/cfg.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/cfg.c')
-rw-r--r-- | nslcd/cfg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nslcd/cfg.c b/nslcd/cfg.c index 00dd8c4..e5c3b1a 100644 --- a/nslcd/cfg.c +++ b/nslcd/cfg.c @@ -431,7 +431,7 @@ static void get_uid(const char *filename,int lnr, check_argumentcount(filename,lnr,keyword,get_token(line,token,sizeof(token))!=NULL); /* check if it is a valid numerical uid */ errno=0; - *var=strtouid(token,&tmp,0); + *var=strtouid(token,&tmp,10); if ((*token!='\0')&&(*tmp=='\0')&&(errno==0)) return; /* find by name */ @@ -457,7 +457,7 @@ static void get_gid(const char *filename,int lnr, check_argumentcount(filename,lnr,keyword,get_token(line,token,sizeof(token))!=NULL); /* check if it is a valid numerical gid */ errno=0; - *var=strtogid(token,&tmp,0); + *var=strtogid(token,&tmp,10); if ((*token!='\0')&&(*tmp=='\0')&&(errno==0)) return; /* find by name */ |