some more malloc to fceu_dmalloc wrapper change
This commit is contained in:
parent
0d63ef203a
commit
26d249ed91
|
@ -61,7 +61,7 @@ void ApplyIPS(FILE *ips, FCEUFILE* fp)
|
||||||
|
|
||||||
if(!ips) return;
|
if(!ips) return;
|
||||||
|
|
||||||
char* buf = (char*)malloc(fp->size);
|
char* buf = (char*)FCEU_dmalloc(fp->size);
|
||||||
memcpy(buf,fp->EnsureMemorystream()->buf(),fp->size);
|
memcpy(buf,fp->EnsureMemorystream()->buf(),fp->size);
|
||||||
|
|
||||||
|
|
||||||
|
@ -467,7 +467,7 @@ void FCEUI_SetDirOverride(int which, char *n)
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
va_start(ap,fmt);
|
va_start(ap,fmt);
|
||||||
if(!(*strp=(char*)malloc(2048))) //mbg merge 7/17/06 cast to char*
|
if(!(*strp=(char*)FCEU_dmalloc(2048))) //mbg merge 7/17/06 cast to char*
|
||||||
return(0);
|
return(0);
|
||||||
ret=vsnprintf(*strp,2048,fmt,ap);
|
ret=vsnprintf(*strp,2048,fmt,ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|
Loading…
Reference in New Issue