Article View: net.notes
Article #219problem in dsply.c
From: 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
Technical Details
Message-ID:
<18300003@ciprico.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!stolaf!umn-cs!mmm!ciprico!notesShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles $Revision: 1.6.2.14 $; site ciprico.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!stolaf!umn-cs!mmm!ciprico!notes From: notes@ciprico.UUCP Newsgroups: net.notes Subject: problem in dsply.c Message-ID: <18300003@ciprico.UUCP> Date: Thu, 7-Feb-85 11:49:00 EST Article-I.D.: ciprico.18300003 Posted: Thu Feb 7 11:49:00 1985 Date-Received: Wed, 13-Feb-85 03:16:39 EST Lines: 42 Nf-ID: #N:ciprico:18300003: 0:1294 Nf-From: ciprico!notes Feb 7 10:49:00 1985