fix segment violation on some input data. Reference: /n/sources/patch/applied/tbl-unicode Date: Wed Jan 4 20:40:48 CET 2006 --- /sys/src/cmd/tbl/tc.c Wed Jan 4 20:40:45 2006 +++ /sys/src/cmd/tbl/tc.c Wed Jan 4 20:40:41 2006 @@ -22,12 +22,18 @@ continue; s = table[ilin][icol].col; if (point(s)) - while (*s) - had[*s++] = 1; + while (*s) { + if((unsigned char)*s < 128) + had[(unsigned char)*s] = 1; + s++; + } s = table[ilin][icol].rcol; if (point(s)) - while (*s) - had[*s++] = 1; + while (*s) { + if((unsigned char)*s < 128) + had[(unsigned char)*s] = 1; + s++; + } } } /* choose first funny character */