Thread View: net.notes
1 messages
1 total messages
Started by notes
Thu, 07 Feb 1985 16:49
problem in dsply.c
Author: notes
Date: Thu, 07 Feb 1985 16:49
Date: Thu, 07 Feb 1985 16:49
42 lines
1903 bytes
1903 bytes
Here is another related problem with that of prtind.c, but this one is
in dsply.c. Again, the name & system is printed out with a string
format without regards whether or not the size is exactly the same as
the array (which would not give the trailing zero byte).
-------------Lines changed are marked with a leading + --------------
if (notenum != 0)
{
if (dispbuf.outcount) /* nth page */
printf ("[Continued] ");
printf ("Note %d", notenum);
}
center (io -> descr.d_title, NNLEN, 1, 40 - NNLEN / 2);
if (note -> n_nresp > 0)
{
at (1, 67);
printf ("%d response", note -> n_nresp);
if (note -> n_nresp > 1)
printf ("s");
}
at (2, 1);
+ printf ("%.*s", NAMESZ, note -> n_auth.aname);
center (note -> ntitle, TITLEN, 2, 40 - TITLEN / 2);
at (2, 59);
prdate (¬e -> n_date);
if (strcmp (System, note -> n_id.sys) && strcmp (Anon, note -> n_auth.aname))
{
at (3, 1);
+ printf ("(at %.*s)", SYSSZ, note -> n_id.sys); /* print system name if not local */
}
if (note -> n_stat & DIRMES)
center (io -> descr.d_drmes, DMLEN, 3, 40 - DMLEN / 2);
else
if (note -> n_stat & WRITONLY)
{
at (3, 31);
printf ("-- (Write Only) --");
}
if (note -> n_stat & FRMNEWS)
{
----------------End of context-----------
-Dan A. Dickey
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