Jump to content

Home

Editing q_shared.h


Tinny

Recommended Posts

Hey guys, I was trying to make a hack by including a header file i wrote in q_shared.h. This was used to flexibly alter some things in q_shared.h as if i edited it directly it would crash the game. But i've tried a new thing and sometimes it works but other times it crashes the game in the q_shared.c file at this function:

 

char * QDECL va( const char *format, ... ) {

va_list argptr;

static char string[2][32000]; // in case va is called by nested functions

static int index = 0;

char *buf;

 

buf = string[index & 1];

index++;

 

va_start (argptr, format);

vsprintf (buf, format,argptr);

va_end (argptr);

 

return buf;

}

 

 

It crashes at the line vsprintf (buf, format,argptr);

 

Does anyone have any idea what is going on?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...