This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=7b6e42a137f4096c7189012724a50b08a988e7d3

commit 7b6e42a137f4096c7189012724a50b08a988e7d3 (HEAD -> main)
Author: Guillem Jover <guil...@debian.org>
AuthorDate: Wed Mar 20 00:49:17 2024 +0100

    libcompat: Include missing <string.h> in strnlen module
    
    We need the header for the memchr() prototype.
    
    Reported-by: Simon Richter <s...@debian.org>
---
 lib/compat/strnlen.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/compat/strnlen.c b/lib/compat/strnlen.c
index d02bb4bbd..288a298f9 100644
--- a/lib/compat/strnlen.c
+++ b/lib/compat/strnlen.c
@@ -20,6 +20,8 @@
 # include <config.h>
 #endif
 
+#include <string.h>
+
 #include "compat.h"
 
 /* Find the length of STRING, but scan at most MAXLEN characters.

-- 
Dpkg.Org's dpkg

Reply via email to