summaryrefslogtreecommitdiff
path: root/sys/src/cmd/webfs/http.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-07-19 23:34:37 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2012-07-19 23:34:37 +0200
commit55ddbff77d1274c028a3be5876ca1b28e090c322 (patch)
tree0e52dab0e351ee20be31a1bcf4d5712b9e202f86 /sys/src/cmd/webfs/http.c
parent15885866cb892152519882f7d661d1dba665d712 (diff)
fix strchr \0 bugs
Diffstat (limited to 'sys/src/cmd/webfs/http.c')
-rw-r--r--sys/src/cmd/webfs/http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/webfs/http.c b/sys/src/cmd/webfs/http.c
index 6562b9815..04882b138 100644
--- a/sys/src/cmd/webfs/http.c
+++ b/sys/src/cmd/webfs/http.c
@@ -274,9 +274,9 @@ hline(Hconn *h, char *data, int len, int cont)
if(n > 0 && cont){
e = h->buf + h->len;
for(y = x+1; y < e; y++)
- if(!strchr("\t ", *y))
+ if(*y != ' ' && *y != '\t')
break;
- if(y >= e || strchr("\t ", *y))
+ if(y >= e || *y == 0)
break;
if(y > x+1){
if(x > h->buf && x[-1] == '\r')