Remove the forcing of null-termination of fullPath on OS X:
CFURLGetFileSystemRepresentation should already null-terminate its buffer.
This commit is contained in:
parent
0c48d99d2b
commit
b9c6d59f11
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue