mz_os_posix.c - fix warning caused by missing cast of return value of strdup

This commit is contained in:
Thomas Gamper 2023-06-07 17:55:34 +02:00 committed by Nathan Moinvaziri
parent a4ccb74add
commit effc920e60

View File

@ -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