From 26b4c8f71f91d22e081b27814782686edde0c90a Mon Sep 17 00:00:00 2001 From: Antoine Brodin Date: Fri, 1 Jan 2021 10:11:34 +0000 Subject: Revert r559792 to unbreak INDEX and bulk -a It seems a lot of reverse dependencies were missed With hat: portmgr --- emulators/nonpareil/files/patch-src_util.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 emulators/nonpareil/files/patch-src_util.c (limited to 'emulators/nonpareil/files/patch-src_util.c') diff --git a/emulators/nonpareil/files/patch-src_util.c b/emulators/nonpareil/files/patch-src_util.c new file mode 100644 index 000000000000..b2de6dbf3909 --- /dev/null +++ b/emulators/nonpareil/files/patch-src_util.c @@ -0,0 +1,18 @@ +--- src/util.c.orig 2008-08-24 00:37:18 UTC ++++ src/util.c +@@ -130,6 +130,7 @@ void realloc_strcpy (char **dest, char * + } + + ++#if 0 + // strlcpy will copy as much of src into dest as it can, up to one less than + // the maximum length of dest specified by the argument l. Unlike strncpy(), + // strlcpy() will always leave dest NULL-terminated on return. +@@ -139,6 +140,7 @@ char *strlcpy (char *dest, const char *s + dest [l - 1] = '\0'; + return dest; + } ++#endif + + + // strlncpy will copy up to n characters from src to dest, but not more than -- cgit v1.2.3