[8140] in SIPB bug reports
trn patch
daemon@ATHENA.MIT.EDU (John Carr)
Tue Jul 23 08:51:40 2002
To: bug-sipb@MIT.EDU
Date: Tue, 23 Jul 2002 08:51:29 -0400
From: John Carr <jfc@MIT.EDU>
This patch seems to fix the bug I reported yesterday, trn
crashing because of long newsgroup names.
The elements of the "rcnums" array need to be big enough
to hold the length of the newsgroup name. Implicitly
signed char can't do it, but unsigned char can. For now.
*** rcstuff.h.orig Tue Jan 17 14:23:53 1995
--- rcstuff.h Tue Jul 23 08:46:03 2002
***************
*** 33,39 ****
#define GNG_FUZZY 0x0002
EXT char *rcchar INIT(NULL); /* holds the character : or ! while spot is \0 */
! EXT char *rcnums INIT(NULL); /* offset from rcline to numbers on line */
EXT ACT_POS *softptr INIT(NULL);
/* likely ptr to active file entry for newsgroup */
EXT bool paranoid INIT(FALSE); /* did we detect some inconsistency in .newsrc? */
--- 33,39 ----
#define GNG_FUZZY 0x0002
EXT char *rcchar INIT(NULL); /* holds the character : or ! while spot is \0 */
! EXT unsigned char *rcnums INIT(NULL); /* offset from rcline to numbers on line */
EXT ACT_POS *softptr INIT(NULL);
/* likely ptr to active file entry for newsgroup */
EXT bool paranoid INIT(FALSE); /* did we detect some inconsistency in .newsrc? */