diff options
author | araujo <araujo@FreeBSD.org> | 2016-05-02 01:45:52 +0000 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2016-05-02 01:45:52 +0000 |
commit | 197079be042259eae1aa6b89b8d41125180bd53d (patch) | |
tree | 732079e1c6e40f44b5d374f32925fdc01fcb6228 /usr.sbin/lpr/lpc | |
parent | 7863804c7784a00fa4e5b91c5ab2de026a22290d (diff) | |
download | FreeBSD-src-197079be042259eae1aa6b89b8d41125180bd53d.zip FreeBSD-src-197079be042259eae1aa6b89b8d41125180bd53d.tar.gz |
Use MIN macro from sys/param.h.
MFC after: 2 weeks.
Diffstat (limited to 'usr.sbin/lpr/lpc')
-rw-r--r-- | usr.sbin/lpr/lpc/lpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/lpr/lpc/lpc.c b/usr.sbin/lpr/lpc/lpc.c index 5b5ec78..2be4c84 100644 --- a/usr.sbin/lpr/lpc/lpc.c +++ b/usr.sbin/lpr/lpc/lpc.c @@ -182,7 +182,7 @@ cmdscanner(void) if ((bp = el_gets(el, &num)) == NULL || num == 0) quit(0, NULL); - len = (num > MAX_CMDLINE - 1) ? MAX_CMDLINE - 1 : num; + len = MIN(MAX_CMDLINE - 1, num); memcpy(cmdline, bp, len); cmdline[len] = 0; history(hist, &he, H_ENTER, bp); |