[9454] in Athena Bugs

home help back first fref pref prev next nref lref last post

rt 7.4E: /source/athena/athena.bin/ispell/buildhash.c

daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Thu Jun 11 19:01:48 1992

Date: Thu, 11 Jun 92 19:01:35 -0400
From: "Jonathan I. Kamens" <jik@pit-manager.MIT.EDU>
To: bugs@Athena.MIT.EDU

System name:		pit-manager
Type and version:	RTPC-ROMPC 7.4E
Display type:		apa16
			megapel

What were you trying to do?
	Turn a file into a hashed ispell dictionary using the
	buildhash program from the ispell sources.

What's wrong:
	There's a bug in the program -- a missing argument to printf
	-- which causes it to coredump.

What should have happened:
	There should not be a missing argument.

Please describe any relevant documentation references:
	/mit/release.dev/source/athena/athena.bin/ispell/buildhash.c
	is fixed.  Here's the patch (one line):

*** 1.1	1987/05/12 15:47:05
--- buildhash.c	1992/06/11 21:28:09
***************
*** 273,279 ****
  	if (p != NULL)
  		*p = 0;
  	if (strlen (lbuf) > WORDLEN - 1) {
! 		printf ("%s: word too big\n");
  		return (-1);
  	}
  
--- 273,279 ----
  	if (p != NULL)
  		*p = 0;
  	if (strlen (lbuf) > WORDLEN - 1) {
! 		printf ("%s: word too big\n", lbuf);
  		return (-1);
  	}
  

  jik

home help back first fref pref prev next nref lref last post