mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2025-05-31 14:11:42 +05:30
Fixed segmentation fault by clarifying pointer of pointer
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user