summaryrefslogtreecommitdiffstats
path: root/usr.bin/top
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2016-04-27 02:44:10 +0000
committeraraujo <araujo@FreeBSD.org>2016-04-27 02:44:10 +0000
commitf2a21f34e8f340f93f6bcca39dda6e5613e4b256 (patch)
tree4474727ad77de6d982c438cfa282ccc07b105e28 /usr.bin/top
parent725b38abd88adc44c1844f586318cbc771aad4b9 (diff)
downloadFreeBSD-src-f2a21f34e8f340f93f6bcca39dda6e5613e4b256.zip
FreeBSD-src-f2a21f34e8f340f93f6bcca39dda6e5613e4b256.tar.gz
Use MIN() macro from sys/param.h.
MFC after: 2 weeks.
Diffstat (limited to 'usr.bin/top')
-rw-r--r--usr.bin/top/machine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c
index 6c4cee7..92cd7c5 100644
--- a/usr.bin/top/machine.c
+++ b/usr.bin/top/machine.c
@@ -1023,7 +1023,7 @@ format_next_process(caddr_t handle, char *(*get_userid)(int), int flags)
continue;
len = (argbuflen - (dst - argbuf) - 1) / 4;
strvisx(dst, src,
- strlen(src) < len ? strlen(src) : len,
+ MIN(strlen(src), len),
VIS_NL | VIS_CSTYLE);
while (*dst != '\0')
dst++;
OpenPOWER on IntegriCloud