]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Manually assign the two char literals instead of a memcpy 555/head
authorRose <83477269+AtariDreams@users.noreply.github.com>
Wed, 23 Nov 2022 00:52:11 +0000 (19:52 -0500)
committerRose <83477269+AtariDreams@users.noreply.github.com>
Sat, 3 Dec 2022 16:29:18 +0000 (11:29 -0500)
memcpy is just silly here.

cgi-bin/admin.c

index 626afaa7bcb2093ac4ff3ccb8121ba92af99b51b..7ae2ddec745d9d62bd807ed496417beefa46ed8e 100644 (file)
@@ -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);