We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
size
1 parent f8ea539 commit fd8bc2dCopy full SHA for fd8bc2d
1 file changed
cups/string.c
@@ -1,6 +1,7 @@
1
/*
2
* String functions for CUPS.
3
*
4
+ * Copyright © 2023 by OpenPrinting.
5
* Copyright © 2007-2019 by Apple Inc.
6
* Copyright © 1997-2007 by Easy Software Products.
7
@@ -730,6 +731,9 @@ _cups_strlcpy(char *dst, /* O - Destination string */
730
731
size_t srclen; /* Length of source string */
732
733
734
+ if (size == 0)
735
+ return (0);
736
+
737
738
* Figure out how much room is needed...
739
*/
0 commit comments