🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #755

finger 1.35

#755
From: Goeran Uddeborg
Date: Mon, 07 Sep 1992 17:33
22 lines
983 bytes
The function lookup_tty in tty.c in finger 1.35 returns a pointer to the
character vector buffer, which has auto storage.  A trivial fix:

*** tty.c~      Thu Aug 20 18:55:04 1992
--- tty.c       Mon Sep  7 14:36:36 1992
***************
*** 85,91 ****
  {
    char *fingerdir, *ttylocfile, *path_concat ();
    FILE *stream;
!   char buffer[256];
  
    stream = fopen (TTYLOCFILE, "r");
  
--- 85,91 ----
  {
    char *fingerdir, *ttylocfile, *path_concat ();
    FILE *stream;
!   static char buffer[256];
  
    stream = fopen (TTYLOCFILE, "r");
  
Technical Details
Message-ID: <199209071333.AA14469@gustaf.sisu.se>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!sisug.sisu.SE!uddeborg

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!sisug.sisu.SE!uddeborg
From: uddeborg@sisug.sisu.SE (Goeran Uddeborg)
Subject: finger 1.35
Message-ID: <199209071333.AA14469@gustaf.sisu.se>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 7 Sep 1992 17:33:08 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 23