tbl will dump core if given a long (>256) input line for a text block. In tg.c, gettext() calls gets1(line) with line dimensioned to 256, but gets1 calls fgets with n=BUFSIZ. Fix: in tg.c gettext() change declaration of line to: char line[BUFSIZ];