From 47ea2331eb5a510fbde478616b9456f2a56c871d Mon Sep 17 00:00:00 2001 From: TANAKA Takuji Date: Sun, 25 Jul 2021 09:31:18 +0900 Subject: [PATCH] zzip/__string.h: cast to avoid compiler warning --- zzip/__string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zzip/__string.h b/zzip/__string.h index e62fb065..4599d498 100644 --- a/zzip/__string.h +++ b/zzip/__string.h @@ -39,7 +39,7 @@ _zzip_strndup(char const *p, size_t maxlen) { if (p == NULL) { - return p; + return (char *)p; } else { size_t len = _zzip_strnlen(p, maxlen);