Fixed segmentation fault by clarifying pointer of pointer

This commit is contained in:
_
2018-04-23 17:43:04 -07:00
parent 046e1f8617
commit 9a14430a88
6 changed files with 12 additions and 12 deletions

View File

@@ -8,7 +8,7 @@ void extracttextures(const char *filedata,
struct Texture *t = NULL;
struct TextureBatchDescriptor *d = NULL;
char * fmt = NULL;
if (!(DEVIL1TEX.getheader(p, filedata)) || filesize == 0) {
if (!(DEVIL1TEX.getheader(&p, filedata)) || filesize == 0) {
return;
}
fmt = (char*)malloc(strlen(filename) + 3 + 4);