diff options
Diffstat (limited to 'Build/source/libs/zziplib/TLpatches/patch-04-strnlen')
-rw-r--r-- | Build/source/libs/zziplib/TLpatches/patch-04-strnlen | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Build/source/libs/zziplib/TLpatches/patch-04-strnlen b/Build/source/libs/zziplib/TLpatches/patch-04-strnlen deleted file mode 100644 index a5f8c38eb2f..00000000000 --- a/Build/source/libs/zziplib/TLpatches/patch-04-strnlen +++ /dev/null @@ -1,20 +0,0 @@ -diff -ur zziplib-0.13.68.orig/zzip/__string.h zziplib-0.13.68/zzip/__string.h ---- zziplib-0.13.68.orig/zzip/__string.h Tue Feb 06 05:00:56 2018 -+++ zziplib-0.13.68/zzip/__string.h Thu Mar 01 12:13:00 2018 -@@ -18,6 +18,16 @@ - #define _zzip_strndup strndup - #else - -+static size_t my_strnlen(const char* str, size_t maxlen) -+{ -+ char *p = memchr(str, 0, maxlen); -+ if (p == NULL) -+ return maxlen; -+ else -+ return (p - str); -+} -+#define strnlen(x,y) my_strnlen((x),(y)) -+ - /* if your system does not have strndup: */ - zzip__new__ static char * - _zzip_strndup(char const *p, size_t maxlen) |