From d466186b241d36ab51f43c7c2f61037624735bd3 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Fri, 30 Sep 2011 11:48:21 +0000 Subject: 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 --- nslcd/cfg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nslcd/cfg.c') 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 */ -- cgit v1.2.3