summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2021-12-23 14:13:49 +0100
committerGravatar Nikias Bassen2021-12-23 14:13:49 +0100
commit91c533af1a906e32eea17eb344f218e45c32a554 (patch)
tree6bf542cffe6de3a907824a0d94c522f2970cf774
parent4a6ffb5a857b9d0a4e282abb570adc24f1ba9da4 (diff)
downloadlibplist-91c533af1a906e32eea17eb344f218e45c32a554.tar.gz
libplist-91c533af1a906e32eea17eb344f218e45c32a554.tar.bz2
jplist: Make strndup argument const to silence compiler warning
-rw-r--r--src/jplist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jplist.c b/src/jplist.c
index 218d75a..fbc963e 100644
--- a/src/jplist.c
+++ b/src/jplist.c
@@ -66,7 +66,7 @@ void plist_json_deinit(void)
}
#ifndef HAVE_STRNDUP
-static char* strndup(char* str, size_t len)
+static char* strndup(const char* str, size_t len)
{
char *newstr = (char *)malloc(len+1);
if (newstr) {