From: Jaakko Heinonen Date: Fri, 12 Oct 2001 12:45:04 +0000 (+0000) Subject: Fixed some warnings X-Git-Tag: upstream/0.6.1~2^2~325 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=c9158d08af06fceb0f2f6d2e600a57eed8987905;p=pkg%2Fabook.git Fixed some warnings --- diff --git a/getname.c b/getname.c index 68bdc2f..90fedd4 100644 --- a/getname.c +++ b/getname.c @@ -288,7 +288,7 @@ void getname(char *line, char **namep, char **emailp) strcpymax(name, NONAME, NAMESTRLEN); else { c = email + strlen(email) - 1; - while (isspace(*c)) + while (isspace((unsigned char)*c)) *c-- = '\0'; strcpymax(name, email, NAMESTRLEN); /* Yes */ } @@ -348,7 +348,7 @@ void getname(char *line, char **namep, char **emailp) */ c = email + (strlen(email) - 1); - while (c > email && isspace(*c)) + while (c > email && isspace((unsigned char)*c)) *c-- = '\0'; *namep = strsav(name);