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

Diff for /src/usr.bin/finger/util.c between version 1.23 and 1.24

version 1.23, 2009/10/27 23:59:38 version 1.24, 2013/11/26 13:18:55
Line 182 
Line 182 
                 if (*p == '&') {                  if (*p == '&') {
                         /* interpolate full name */                          /* interpolate full name */
                         strlcpy(bp, login, buflen - (bp - buf));                          strlcpy(bp, login, buflen - (bp - buf));
                         *bp = toupper(*bp);                          *bp = toupper((unsigned char)*bp);
                         bp += strlen(bp);                          bp += strlen(bp);
                 }                  }
                 else                  else
Line 342 
Line 342 
   
         /* don't touch anything if the user has their own formatting */          /* don't touch anything if the user has their own formatting */
         for (p = num; *p; ++p)          for (p = num; *p; ++p)
                 if (!isdigit(*p))                  if (!isdigit((unsigned char)*p))
                         return (num);                          return (num);
         len = p - num;          len = p - num;
         p = pbuf;          p = pbuf;

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24