1
0
Fork 0

fix emalloc

This commit is contained in:
dreg_fr33project 2014-08-05 01:17:10 +02:00
parent 3f7c3c620d
commit 2457790c96
1 changed files with 2 additions and 2 deletions

View File

@ -290,13 +290,13 @@ extern "C" DLL_EXPORT const char* _dbg_dbginit()
{
#define ATTACH_CMD_JIT_STRING "attach ."
char * attachcmd = (char *) calloc( sizeof( ATTACH_CMD_JIT_STRING ) + strlen(argv[2]) + 1, 1 );
char * attachcmd = (char *) (char*)emalloc(sizeof( ATTACH_CMD_JIT_STRING ) + strlen(argv[2]) + 1, "_dbg_dbginit:attachcmd");
if ( attachcmd != NULL )
{
strcpy( attachcmd, ATTACH_CMD_JIT_STRING );
strcat( attachcmd, argv[2] );
DbgCmdExec(attachcmd);
free(attachcmd);
efree(attachcmd);
}
}
}