diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index 6c4cee7b896b..92cd7c522431 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++;