From 5b28849589e7577a222685852b8601a1e7568726 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Wed, 25 Oct 2000 18:35:30 -0400 Subject: snapshot of project "lynx", label v2-8-4dev_12 --- src/LYGetFile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/LYGetFile.c') diff --git a/src/LYGetFile.c b/src/LYGetFile.c index 9807e870..4c37ed5b 100644 --- a/src/LYGetFile.c +++ b/src/LYGetFile.c @@ -176,7 +176,7 @@ Try_Redirected_URL: FREE(temp); return(NULLFILE); } - } else if (isdigit((unsigned char)*cp)) { + } else if (isdigit(UCH(*cp))) { HTAlert(URL_PORT_BAD); FREE(temp); return(NULLFILE); @@ -1153,7 +1153,7 @@ PUBLIC int follow_link_number ARGS4( return(DO_NOTHING); } *num = atoi(p); - while ( isdigit(*p) ) + while ( isdigit(UCH(*p)) ) ++p; c = *p; /* reuse c; 0 or g or p or + or - */ switch ( c ) { @@ -1437,7 +1437,7 @@ PUBLIC BOOLEAN exec_ok ARGS3( else allowed_extra_chars = " _-:./@~$+=\t"; for (cp = linktext; *cp != '\0'; cp++) { - if (!isalnum(*cp) && !strchr(allowed_extra_chars, *cp)) { + if (!isalnum(UCH(*cp)) && !strchr(allowed_extra_chars, *cp)) { char *buf = 0; HTSprintf0(&buf, -- cgit 1.4.1-2-gfad0