From 2cf54f54ad3843eeb129fce3131d254092f620e7 Mon Sep 17 00:00:00 2001 From: nhmall Date: Fri, 26 Feb 2021 09:47:54 -0500 Subject: [PATCH] bit --- src/hacklib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hacklib.c b/src/hacklib.c index 654e60487..fe2233dbc 100644 --- a/src/hacklib.c +++ b/src/hacklib.c @@ -1226,7 +1226,7 @@ nonconst(const char *str, char *buf, size_t bufsz) char *retval = emptystr; if (str && buf) - if (strlen(str) < (bufsz - 1)) { + if (strlen(str) <= (bufsz - 1)) { Strcpy(buf, str); retval = buf; }