Buenas!
¿Alguien sabe por qué este strcat produce un crash?
Código:
char* glsl_source;
char* vsdefine = "#define COMPILING_VS\n";
ifstream in(filename, ios::binary);
in.seekg(0 , std::ios::end);
fsize = in.tellg();
in.seekg(0 , std::ios::beg);
glsl_source = new char[fsize + 1];
in.read(glsl_source,fsize);
in.close();
strcat(fsdefine, glsl_source); //crash en este punto