> > The real oversight is in gl_shader_tool.c: gl_compile_shader_file() > > > > const int buffer_len=8192; > > > > buffer = (GLcharARB *) malloc(buffer_len); > > Yeah, I've just corrected that in github top-of-tree if you guys wanna pull it and > check it out.
I think you allocate exactly as many characters as you need to read the file now. But then overwrite the last character with a '\0' to terminate the string.
So it loses the last character from the file. Kind of important if it's a closing '}'