Return to getcap.c CVS log | Up to [local] / src / usr.bin / getcap |
version 1.6, 2015/10/10 05:43:48 | version 1.7, 2017/01/20 03:47:31 | ||
---|---|---|---|
|
|
||
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); |