]> git.deb.at Git - pkg/abook.git/commitdiff
Fixed some warnings
authorJaakko Heinonen <jheinonen@users.sourceforge.net>
Fri, 12 Oct 2001 12:45:04 +0000 (12:45 +0000)
committerJaakko Heinonen <jheinonen@users.sourceforge.net>
Fri, 12 Oct 2001 12:45:04 +0000 (12:45 +0000)
getname.c

index 68bdc2f1dceaa9f0f063848ffb30c8fa3b673c79..90fedd4df90ce5832b00499eebcf320830de481e 100644 (file)
--- 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);