daw42/glslcookbook — pull request #1 by dangets (2012-06-14 16:08:20+00:00)
Title: Fixed file reading bug where last character read was bogus

shaderCode[--i] = '\0'; // null last character filled (invalid)
before it was i++, but the eof character had already been stored
This is the same fix in all of the scenebasic files