diff options
Diffstat (limited to 'WWW/Library/Implementation/HTParse.c')
-rw-r--r-- | WWW/Library/Implementation/HTParse.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/WWW/Library/Implementation/HTParse.c b/WWW/Library/Implementation/HTParse.c index 74197460..32ae6fa5 100644 --- a/WWW/Library/Implementation/HTParse.c +++ b/WWW/Library/Implementation/HTParse.c @@ -320,9 +320,10 @@ PUBLIC char * HTParse ARGS3( if (*h == '.') *h = '\0'; /* chop final . */ } - } else { + } else if (p2 != result) { h = p2; - h--; /* End of hostname */ + if (h != result) + h--; /* End of hostname */ if (*h == '.') { /* ** Slide p2 over h. |