27 lines
609 B
Diff
27 lines
609 B
Diff
|
From 5e3107e734f06d410a490e8bc923dc3119f17671 Mon Sep 17 00:00:00 2001
|
||
|
From: Michael R Sweet <michael.r.sweet@gmail.com>
|
||
|
Date: Wed, 17 May 2023 12:59:57 -0400
|
||
|
Subject: [PATCH] Consensus fix.
|
||
|
|
||
|
---
|
||
|
cups/string.c | 4 ++++
|
||
|
1 file changed, 4 insertions(+)
|
||
|
|
||
|
diff --git a/cups/string.c b/cups/string.c
|
||
|
index 00454203c..b4fc12050 100644
|
||
|
--- a/cups/string.c
|
||
|
+++ b/cups/string.c
|
||
|
@@ -730,6 +731,9 @@ _cups_strlcpy(char *dst, /* O - Destination string */
|
||
|
size_t srclen; /* Length of source string */
|
||
|
|
||
|
|
||
|
+ if (size == 0)
|
||
|
+ return (0);
|
||
|
+
|
||
|
/*
|
||
|
* Figure out how much room is needed...
|
||
|
*/
|
||
|
--
|
||
|
2.40.1
|
||
|
|