From 32660ca4d5ce133a11e332a35907e047ce510466 Mon Sep 17 00:00:00 2001 From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Tue, 22 Nov 2022 19:52:11 -0500 Subject: [PATCH] Manually assign the two char literals instead of a memcpy memcpy is just silly here. --- cgi-bin/admin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cgi-bin/admin.c b/cgi-bin/admin.c index 626afaa7bc..7ae2ddec74 100644 --- a/cgi-bin/admin.c +++ b/cgi-bin/admin.c @@ -3706,7 +3706,8 @@ get_option_value( if (bufptr == buffer || (bufend - bufptr) < 2) return (NULL); - memcpy(bufptr, "}", 2); + bufptr[0] = '}'; + bufptr[1] = '\0'; } return (buffer); -- 2.47.2