diff options
author | Nikias Bassen | 2021-12-23 14:13:49 +0100 |
---|---|---|
committer | Nikias Bassen | 2021-12-23 14:13:49 +0100 |
commit | 91c533af1a906e32eea17eb344f218e45c32a554 (patch) | |
tree | 6bf542cffe6de3a907824a0d94c522f2970cf774 /src/jplist.c | |
parent | 4a6ffb5a857b9d0a4e282abb570adc24f1ba9da4 (diff) | |
download | libplist-91c533af1a906e32eea17eb344f218e45c32a554.tar.gz libplist-91c533af1a906e32eea17eb344f218e45c32a554.tar.bz2 |
jplist: Make strndup argument const to silence compiler warning
Diffstat (limited to 'src/jplist.c')
-rw-r--r-- | src/jplist.c | 2 |
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) { |