Skip to content

Commit 41cd674

Browse files
authored
Bug fix for not finding # in URL.
1 parent cc67208 commit 41cd674

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

chap06/web_get.c

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ void parse_url(char *url, char **hostname, char **port, char** path) {
6666
}
6767
*p = 0;
6868

69+
++p;
6970
while (*p && *p != '#') ++p;
7071
if (*p == '#') *p = 0;
7172

0 commit comments

Comments
 (0)