[comp.text.tex] Bug fix to Kamal Al-Yahya's detex

usenet@nlm.nih.gov (usenet news poster) (09/06/90)

The following is a bug fix to Kamal Al-Yahya's "detex" program,
more specifically, to the "texexpand" program that expands
\input and \include commands.  How this program ever worked is
beyond me.  The erroneous behavior is that it would insert extra
random text before the included file.

In file  Expand.c :

118,119c118
<     /* PDK - was strcat - how did this ever work? */
<                       strcpy(buf,buf2);
---
>                       strcat(buf,buf2);