Try to fix ctype issues by always calling these functions as
[rsync.git] / socket.c
index 6a13b04a200b93804385e523be925e05d9a2d01e..bb7acc06d88414c9d8b707c57b8f1b2343064ae0 100644 (file)
--- a/socket.c
+++ b/socket.c
@@ -70,7 +70,7 @@ static int establish_proxy_connection(int fd, char *host, int port)
                        buffer);
                return -1;
        }
-       for (cp = &buffer[5]; isdigit((int) *cp) || (*cp == '.'); cp++)
+       for (cp = &buffer[5]; isdigit(* (unsigned char *) cp) || (*cp == '.'); cp++)
                ;
        while (*cp == ' ')
                cp++;