[BACK]Return to screen.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / top

Diff for /src/usr.bin/top/screen.c between version 1.4 and 1.5

version 1.4, 1997/09/16 19:25:00 version 1.5, 1997/12/02 17:56:30
Line 168 
Line 168 
     PC = (PCptr = tgetstr("pc", &bufptr)) ? *PCptr : 0;      PC = (PCptr = tgetstr("pc", &bufptr)) ? *PCptr : 0;
   
     /* set convenience strings */      /* set convenience strings */
     (void) strcpy(home, tgoto(cursor_motion, 0, 0));      (void) strncpy(home, tgoto(cursor_motion, 0, 0), sizeof (home) -1);
       home[sizeof (home) -1] = 0;
     /* (lower_left is set in get_screensize) */      /* (lower_left is set in get_screensize) */
   
     /* get the actual screen size with an ioctl, if needed */      /* get the actual screen size with an ioctl, if needed */
Line 269 
Line 270 
         }          }
     }      }
   
     (void) strcpy(lower_left, tgoto(cursor_motion, 0, screen_length - 1));      (void) strncpy(lower_left, tgoto(cursor_motion, 0, screen_length - 1),
                      sizeof (lower_left) -1);
       lower_left[sizeof(lower_left) -1] = 0;
 }  }
   
 void standout(msg)  void standout(msg)

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5