[1272] in Athena Bugs

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

[Ron Natalie: Bug in make_commands]

daemon@ATHENA.MIT.EDU (John T Kohl)
Fri Oct 28 18:02:27 1988

Date: Fri, 28 Oct 88 18:02:10 EDT
From: John T Kohl <jtkohl@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
This is a bug in the standard ss library stuff.

------- Forwarded Message

Date: Fri, 28 Oct 88 18:00:24 EDT
From: ron@hardees.rutgers.edu (Ron Natalie)
To: jtkohl@ATHENA.MIT.EDU
Subject:  Bug in make_commands


It dumps core...In mkcmds_utils.c around line 75, the following
code appears
	sprintf(numbuf, "%d" options);
	size += strlen(options);
Since options is an int, it's probably numbuf you want the length
of since that is what is cons'd up in the next few lines.  The
line should read

	size += strlen(numbuf);

-Ron

P.S.  I once had a programmer who would have computed that by
taking the log_base_10 of the number to know how big to make the
field.


------- End Forwarded Message

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