Use MIN() macro from sys/param.h.

MFC after:	2 weeks.
This commit is contained in:
araujo 2016-04-27 02:44:10 +00:00
parent 725b38abd8
commit f2a21f34e8

View File

@ -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++;