diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1997-11-17 14:36:49 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1997-11-17 14:36:49 -0500 |
commit | e47cfd5646f55de9688ff42df3055fd9c09b503f (patch) | |
tree | aab6f3c275e0f2ef58110654e4d87e5bc6676130 /WWW/Library/Implementation/HTParse.c | |
parent | b63d287c6f3e67f8574ca2155c661288bc7dcd05 (diff) | |
download | lynx-snapshots-e47cfd5646f55de9688ff42df3055fd9c09b503f.tar.gz |
snapshot of project "lynx", label v2-7-1ac_0-95
Diffstat (limited to 'WWW/Library/Implementation/HTParse.c')
-rw-r--r-- | WWW/Library/Implementation/HTParse.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/WWW/Library/Implementation/HTParse.c b/WWW/Library/Implementation/HTParse.c index 6f558ef5..ab5149b0 100644 --- a/WWW/Library/Implementation/HTParse.c +++ b/WWW/Library/Implementation/HTParse.c @@ -65,7 +65,7 @@ PRIVATE void scan ARGS2( char * p; #ifdef NOTDEFINED int length = strlen(name); -#endif +#endif /* NOTDEFINED */ parts->access = NULL; parts->host = NULL; @@ -89,7 +89,7 @@ PRIVATE void scan ARGS2( } #ifdef NOTDEFINED - for (p = (name + length-1); p >= name; p--) { + for (p = (name + length-1); p >= name; p--) {} #endif /* NOTDEFINED */ /* ** Scan left-to-right for a fragment (anchor). @@ -699,7 +699,10 @@ PUBLIC char * HTUnEscape ARGS1( while (*p != '\0') { if (*p == HEX_ESCAPE && - p[1] && p[2] && /* tests shouldn't be needed, but.. */ + /* + * Tests shouldn't be needed, but better safe than sorry. + */ + p[1] && p[2] && isxdigit((unsigned char)p[1]) && isxdigit((unsigned char)p[2])) { p++; |