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

Diff for /src/usr.bin/who/who.c between version 1.12 and 1.13

version 1.12, 2002/02/16 21:27:59 version 1.13, 2003/04/07 21:14:28
Line 208 
Line 208 
                 /* well, at least we know what the tty is */                  /* well, at least we know what the tty is */
                 (void)strncpy(usr.ut_line, p, UT_LINESIZE);                  (void)strncpy(usr.ut_line, p, UT_LINESIZE);
         } else          } else
                 (void)strcpy(usr.ut_line, "tty??");                  (void)strncpy(usr.ut_line, "tty??", UT_LINESIZE);
   
         pw = getpwuid(getuid());          pw = getpwuid(getuid());
         (void)strncpy(usr.ut_name, pw ? pw->pw_name : "?", UT_NAMESIZE);          (void)strncpy(usr.ut_name, pw ? pw->pw_name : "?", UT_NAMESIZE);

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13