gemrb/gemrb — pull request #25 by berenm (2014-08-30 13:36:56+00:00)
Title: Log full config path instead of the 16-char buffer that overflows.

The configuration file name is usually longer than 16 characters. When the configuration file stream is created, the originalFile member is copied to the filename member, which is a 16 char long buffer, and the terminating \0 is overwritten.

When logging the file name that has been used as the configuration file, an incorrect name is printed, the concatenation of the 16-char buffer and the original filename.