Open mundusnine opened 7 months ago
Maybe this one is also handled with my last commit?
I just tested it. It sadly didn't fix it for the indexing part. I tested:
char* lev_name = level_names[i];
size_t len = strlen((const char*)lev_name);
//and
size_t len = strlen((const char*)level_names[i]);
Both return a pointer but not a valid pointer, except when we are at index 0
Array accesses still needed to be adjusted to work with arrays of pointers. Please update and try again!
When using char*[] passed from the application or from the runtime, when we try to index > 0, we get trash data in the
printf
call.Basically, here is my code:
Even without
getLevelNames
, the data we receive in theprintf
isn't valid i.e.: