passwd: cast to unsigned char
@@ -61,7 +61,7 @@ static int validatepwent (struct passwd * pwd)
static unsigned atou(char **s)
{
unsigned x;
- for (x=0; **s-'0'<10U; ++*s) x=10*x+(**s-'0');
+ for (x=0; (unsigned char)(**s-'0')<10U; ++*s) x=10*x+((unsigned char)**s-'0');
return x;
}
