Patch from davefiddes. Original commit message :
This fixes issues reported by gcc 10 with the size of various filename buffers
when concatenating strings into them.
Tests:
- Build cleanly with gcc 10
- Run a Pentium MMX Win98 machine and use custom GLSLP shader