I'm continuing my project and found a strange error, I can think of ten thousand hacks to get around it and a few ways to fix it properly, but my curiousity is peeked. why Is AStringBufEx end result 18 characters long when the Lenth of the initial string is only 13?
Runtime:
oString = 0x0012fb7c " data/level1/"
Lenth = 13
AStringBufEx = 0x003979f0 " data/level1/﷽﷽ꮫꮫꮫꮫﻮ"
void DrawDebugText(wchar_t oString[100])
{
int Lenth = wcslen(oString);
wchar_t* AStringBufEx;
AStringBufEx = new wchar_t[Lenth];
*AStringBufEx = NULL;
for(int i=0;i<Lenth;i++)
{
AStringBufEx[i]=oString[i];
}
}