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(+)

--- a/cups/string.c
+++ b/cups/string.c
@@ -1,6 +1,7 @@
 /*
  * String functions for CUPS.
  *
+ * Copyright © 2023 by OpenPrinting.
  * Copyright © 2007-2019 by Apple Inc.
  * Copyright © 1997-2007 by Easy Software Products.
  *
@@ -760,6 +761,9 @@ _cups_strlcpy(char       *dst,		/* O - D
   size_t	srclen;			/* Length of source string */
 
 
+  if (size == 0)
+    return (0);
+
  /*
   * Figure out how much room is needed...
   */
