fix: ecs_os_api_strdup() default implementation incorrectly using default ecs_os_api_malloc
should go through override path
@@ -161,7 +161,7 @@ void ecs_os_api_free(void *ptr) {
static
char* ecs_os_api_strdup(const char *str) {
int len = ecs_os_strlen(str);
- char *result = ecs_os_api_malloc(len + 1);
+ char *result = ecs_os_malloc(len + 1);
ecs_assert(result != NULL, ECS_OUT_OF_MEMORY, NULL);
ecs_os_strcpy(result, str);
return result;
