From 725b38abd88adc44c1844f586318cbc771aad4b9 Mon Sep 17 00:00:00 2001 From: araujo Date: Wed, 27 Apr 2016 02:34:25 +0000 Subject: Use MIN() macro from sys/param.h. MFC after: 2 weeks. --- usr.bin/tftp/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/tftp/main.c b/usr.bin/tftp/main.c index dc9ed8c..188ce68 100644 --- a/usr.bin/tftp/main.c +++ b/usr.bin/tftp/main.c @@ -727,7 +727,7 @@ command(void) if (vrbose) { if ((bp = el_gets(el, &num)) == NULL || num == 0) exit(0); - len = (num > MAXLINE) ? MAXLINE : num; + len = MIN(MAXLINE, num); memcpy(line, bp, len); line[len] = '\0'; history(hist, &he, H_ENTER, bp); -- cgit v1.1