From 9a6d04290806afec59c988419cdac0fdbe4509ff Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 24 May 2024 12:22:48 -0400 Subject: init: mshell: Remove useless length check Signed-off-by: Ian Moffett --- usr.sbin/init/mshell.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/usr.sbin/init/mshell.c b/usr.sbin/init/mshell.c index 38ea003..3cfbb65 100644 --- a/usr.sbin/init/mshell.c +++ b/usr.sbin/init/mshell.c @@ -77,9 +77,6 @@ print_file(const char *path) } len = read(fd, buf, sizeof(buf)); - if (len > MAX_FILE_SIZE) { - len = MAX_FILE_SIZE - 1; - } if (len > 0) { buf[len] = '\0'; -- cgit v1.2.3