Make libhtml, htmlfmt build.

Thanks to wkj for doing all the hard work.
This commit is contained in:
rsc 2004-04-08 19:36:35 +00:00
parent a67406e465
commit 650deb7980
7 changed files with 20 additions and 39 deletions

View file

@ -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;
}