From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Wed, 23 Nov 2022 00:52:11 +0000 (-0500) Subject: Manually assign the two char literals instead of a memcpy X-Git-Tag: v2.4.3~83^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F555%2Fhead;p=thirdparty%2Fcups.git Manually assign the two char literals instead of a memcpy memcpy is just silly here. --- 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);