[net.notes] prtind.c problem.

dan@ciprico.UUCP (02/07/85)

There is a slight problem in the size of author and system names.  If the
system name is >= SYSSZ or the author's >= NAMESZ then prtind.c will do
funny things...(It turned off my cursor and blanked the screen for me!).
Anyways...here is the fix:   This is for notes 1.6.2.16 I think....
	-Dan A. Dickey
------------------------------------------------------------------
	at (atrow, 10 + 4 + TITLEN + 1 + 3 + 1);
	if (strcmp (System, note.n_id.sys) != 0 &&
		strcmp ("Anonymous", note.n_auth.aname) != 0)
	{
#ifdef	USERHOST
	    sprintf (buf, "%.*s@%.*s", NAMESZ, note.n_auth.aname, SYSSZ, note.n_id.sys);
#else
	    sprintf (buf, "%.*s!%.*s", SYSSZ, note.n_id.sys, NAMESZ, note.n_auth.aname);
#endif	USERHOST
	}
	else
	    sprintf (buf, "%.*s", NAMESZ, note.n_auth.aname);

	buf[26] = '\0';					/* don't overflow line */
	printf ("%s", buf);
	if (isinput ())
	    return;					/* he typed */
	atrow++;
	if (intflag)					/* did he want out? */
-------------End of fix---------
Note: there are plenty more problems...I'll post them as I find them.