diff options
author | Antoine Brodin <antoine@FreeBSD.org> | 2021-01-01 10:11:34 +0000 |
---|---|---|
committer | Antoine Brodin <antoine@FreeBSD.org> | 2021-01-01 10:11:34 +0000 |
commit | 26b4c8f71f91d22e081b27814782686edde0c90a (patch) | |
tree | 1c321c39372c25d8634e75b5c8e08edc676b296d /emulators/nonpareil/files/patch-src_util.c | |
parent | New port: math/py-optuna: A hyperparameter optimization framework (diff) |
Revert r559792 to unbreak INDEX and bulk -a
It seems a lot of reverse dependencies were missed
With hat: portmgr
Diffstat (limited to 'emulators/nonpareil/files/patch-src_util.c')
-rw-r--r-- | emulators/nonpareil/files/patch-src_util.c | 18 |
1 files changed, 18 insertions, 0 deletions
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 |