Thread View: news.software.misc
1 messages
1 total messages
Started by Smith and O'Halloran
Sun, 12 Oct 1997 00:00
trn bugfix for alt.jdh.jdh.jdh.jdh.jdh.jdh.jdh.jdh.jdh.jdh.jdh
Author: Smith and O'Halloran
Date: Sun, 12 Oct 1997 00:00
Date: Sun, 12 Oct 1997 00:00
35 lines
1671 bytes
1671 bytes
Any time there is a bogus newsgroup with a name that is longer that 127 characters, trn blows up with a segmentation fault. The workaround is to use "trn -q", the fix is to recompile without using a signed char for storing the string length. Here are the diffs to patch trn-3.6 - can someone forward this to the current maintainer? Thanks. -Joe ==> /home/inwap/ftp/trn-rcstuff.h.diff <== 36c36,37 < EXT char *rcnums INIT(NULL); /* offset from rcline to numbers on line */ --- > /* If a bogus newsgroup name exceeds 127 chars, 'char *' blows up. -inwap */ > EXT short *rcnums INIT(NULL); /* offset from rcline to numbers on line */ ==> /home/inwap/ftp/trn-rcstuff.c.diff <== 218c218 < rcnums[ngnum] = (char)len + 1; --- > rcnums[ngnum] = (short)len + 1; 511c511 < char tmprcnums; --- > short tmprcnums; 1061c1061 < rcnums = (char*)saferealloc(rcnums, --- > rcnums = (short*)saferealloc(rcnums, -- INWAP.COM is Joe and Sally Smith, John and Chris O'Halloran and our cats See http://www.inwap.com/ for "ReBoot", PDP-10, and Clan MacLeod.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads