mirror of
https://github.com/zlib-ng/minizip-ng
synced 2025-03-28 21:13:18 +00:00
mz_os_posix.c - fix warning caused by missing cast of return value of strdup
This commit is contained in:
parent
a4ccb74add
commit
effc920e60
@ -90,7 +90,7 @@ uint8_t *mz_os_utf8_string_create(const char *string, int32_t encoding) {
|
||||
}
|
||||
#else
|
||||
uint8_t *mz_os_utf8_string_create(const char *string, int32_t encoding) {
|
||||
return strdup(string);
|
||||
return (uint8_t*)strdup(string);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user