Use MIN() macro from sys/param.h.
MFC after: 2 weeks.
This commit is contained in:
parent
a9a46bd918
commit
cd59e2f343
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user