Make libhtml, htmlfmt build.
Thanks to wkj for doing all the hard work.
This commit is contained in:
parent
a67406e465
commit
650deb7980
7 changed files with 20 additions and 39 deletions
|
|
@ -145,10 +145,10 @@ baseurl(char *url)
|
|||
return nil;
|
||||
base = estrdup(url);
|
||||
slash = strrchr(base, '/');
|
||||
if(slash!=nil && slash>=&base[rs[0].e.p-rs[0].s.p])
|
||||
if(slash!=nil && slash>=&base[rs[0].e.ep-rs[0].s.sp])
|
||||
*slash = '\0';
|
||||
else
|
||||
base[rs[0].e.p-rs[0].s.p] = '\0';
|
||||
base[rs[0].e.ep-rs[0].s.sp] = '\0';
|
||||
return base;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue