diff options
Diffstat (limited to 'modules/pam_pwhistory')
-rw-r--r-- | modules/pam_pwhistory/opasswd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/pam_pwhistory/opasswd.c b/modules/pam_pwhistory/opasswd.c index fc610e2f..6e44ed2a 100644 --- a/modules/pam_pwhistory/opasswd.c +++ b/modules/pam_pwhistory/opasswd.c @@ -199,7 +199,7 @@ check_old_pass, const char *user, const char *newpass, const char *filename, int tmp = strchr (cp, '#'); /* remove comments */ if (tmp) *tmp = '\0'; - while (isspace ((int)*cp)) /* remove spaces and tabs */ + while (isspace ((unsigned char)*cp)) /* remove spaces and tabs */ ++cp; if (*cp == '\0') /* ignore empty lines */ continue; @@ -420,7 +420,7 @@ save_old_pass, const char *user, int howmany, const char *filename, int debug UN tmp = strchr (cp, '#'); /* remove comments */ if (tmp) *tmp = '\0'; - while (isspace ((int)*cp)) /* remove spaces and tabs */ + while (isspace ((unsigned char)*cp)) /* remove spaces and tabs */ ++cp; if (*cp == '\0') /* ignore empty lines */ goto write_old_data; |