Fix segmentation fault in IsPatch.

Change pointer to long in IsPatch to pointer to uint32_t.
The size of long depends on the implementation, most posix systems are
LP64, wich means long is 64 bits not 32 bits like in Windows.
The program now seems to work on Linux with GCC.
This commit is contained in:
NoiTaTuM 2017-01-11 10:43:55 -03:00 committed by Christoph Oelckers
parent 6219e4ab7c
commit d8bee03707

View file

@ -85,7 +85,7 @@ char * getdir(const char * lump)
bool isPatch(const char * n)
{
if (!pstartfound || PNames.mLump < 0) return false;
long * l = (long*)PNames.Address();
uint32_t * l = (uint32_t*)PNames.Address();
char * c = (char*)(l + 1);
char nn[9];