🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by dan Wed, 06 Feb 1985 22:14
prtind.c problem.
#218
Author: dan
Date: Wed, 06 Feb 1985 22:14
28 lines
1633 bytes
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.
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