diff options
author | araujo <araujo@FreeBSD.org> | 2016-04-27 02:44:10 +0000 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2016-04-27 02:44:10 +0000 |
commit | f2a21f34e8f340f93f6bcca39dda6e5613e4b256 (patch) | |
tree | 4474727ad77de6d982c438cfa282ccc07b105e28 /usr.bin/top | |
parent | 725b38abd88adc44c1844f586318cbc771aad4b9 (diff) | |
download | FreeBSD-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.c | 2 |
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++; |