Remove the forcing of null-termination of fullPath on OS X:

CFURLGetFileSystemRepresentation should already null-terminate its buffer.
This commit is contained in:
C.W. Betts 2018-08-23 21:34:28 -06:00
parent 0c48d99d2b
commit b9c6d59f11

View file

@ -234,7 +234,6 @@ bool PHYSFSX_init(int argc, char *argv[])
{
if (CFURLGetFileSystemRepresentation(resourcesURL, TRUE, reinterpret_cast<uint8_t *>(fullPath), sizeof(fullPath)))
{
fullPath[sizeof(fullPath) - 1] = '\0';
con_printf(CON_DEBUG, "PHYSFS: append resources directory \"%s\" to search path", fullPath);
PHYSFS_addToSearchPath(fullPath, 1);
}