Apparently not every prefix line in cty.dat contains a carriage return
plus line feed. This causes tlf to crash when data is written to the
buffer in order to erase these. I am guessing the routine is trying to
write past the buffer length.

In order to fix this, replace the lines:

  buffer[strlen(buffer)-1] = '0';            // remove     \012
  buffer[strlen(buffer)-1] = '0';           // remove      \015

in readctydata.c (around line 90), with:

  char *loc = NULL;
  if ((loc = strchr(buffer, '\r')))
   *loc = '\0';

Regards,
Joop PG4I



_______________________________________________
Tlf-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tlf-devel

Reply via email to