various bug fixes

This commit is contained in:
rsc 2004-05-05 04:22:16 +00:00
parent 4f48d1d4f7
commit 2e965b3324
12 changed files with 82 additions and 41 deletions

View file

@ -281,7 +281,7 @@ hload(Hio *h, char *buf)
s = strchr(hstates, buf[0]);
if(s == nil)
return 0;
return -1;
h->state = s - hstates;
s = strchr(hxfers, buf[1]);
@ -300,13 +300,13 @@ hload(Hio *h, char *buf)
}
*t++ = c;
if(t >= stop)
return 0;
return -1;
}
*t = '\0';
h->pos = h->start;
h->stop = t;
h->seek = 0;
return 1;
return 0;
}
void