Fixed a Segfault in the ResourceManager class.

The char array was one byte too short.