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

Diff for /src/usr.bin/getcap/getcap.c between version 1.6 and 1.7

version 1.6, 2015/10/10 05:43:48 version 1.7, 2017/01/20 03:47:31
Line 161 
Line 161 
                 if (cp != NULL) {                  if (cp != NULL) {
                         if ((endp = strchr(cp, ':')) != NULL)                          if ((endp = strchr(cp, ':')) != NULL)
                                 printf("%.*s%s%.*s\n", prefixlen, buf,                                  printf("%.*s%s%.*s\n", prefixlen, buf,
                                     useprefix ? ": " : "", endp - cp, cp);                                      useprefix ? ": " : "", (int)(endp - cp),
                                       cp);
                         else                          else
                                 printf("%.*s%s%s\n", prefixlen, buf,                                  printf("%.*s%s%s\n", prefixlen, buf,
                                     useprefix ? ": " : "", cp);                                      useprefix ? ": " : "", cp);

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7