[openssh-commits] [openssh] 01/03: Add prototype for compat strndup.(bz#3032).

git+noreply at mindrot.org git+noreply at mindrot.org
Sat Jul 6 13:26:50 AEST 2019


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

dtucker pushed a commit to branch master
in repository openssh.

commit 2753521e899f30d1d58b5da0b4e68fde6fcf341e
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Sat Jul 6 12:54:43 2019 +1000

    Add prototype for compat strndup.(bz#3032).
---
 openbsd-compat/openbsd-compat.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h
index 865aaee5..95721357 100644
--- a/openbsd-compat/openbsd-compat.h
+++ b/openbsd-compat/openbsd-compat.h
@@ -109,6 +109,10 @@ size_t strlcat(char *dst, const char *src, size_t siz);
 char *strcasestr(const char *, const char *);
 #endif
 
+#ifndef HAVE_STRNDUP
+char *strndup(const char *s, size_t n);
+#endif
+
 #ifndef HAVE_SETENV
 int setenv(register const char *name, register const char *value, int rewrite);
 #endif

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list