summaryrefslogtreecommitdiff
path: root/sys/src/cmd/tcs
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@centraldogma>2011-10-04 16:39:08 +0200
committercinap_lenrek <cinap_lenrek@centraldogma>2011-10-04 16:39:08 +0200
commitb7811b8bc6ca175a57fb3743a7ef6945926ca5fc (patch)
treedc8a23cb939c90c0b0a7ee96b77fbaebec2562ed /sys/src/cmd/tcs
parenteff23cb32e2b9842d5e104216ae8ae28227bf7d3 (diff)
tcs: fix special character detection
Diffstat (limited to 'sys/src/cmd/tcs')
-rw-r--r--sys/src/cmd/tcs/html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/tcs/html.c b/sys/src/cmd/tcs/html.c
index 6d333e36e..866f158e0 100644
--- a/sys/src/cmd/tcs/html.c
+++ b/sys/src/cmd/tcs/html.c
@@ -439,7 +439,7 @@ html_in(int fd, long *x, struct convert *out)
}
continue;
out:
- if(strchr("<>&\"'", c)){
+ if((c & 0x7f) == c && strchr("<>&\"'", c)){
s = ';';
i = sprint(buf, "&%s", findbyrune(c));
goto bad;