Tinny Posted January 28, 2005 Share Posted January 28, 2005 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 More sharing options...
Wudan Posted January 30, 2005 Share Posted January 30, 2005 Yes, your modified code caused the engine to do something that it didn't want to, causing the crash. Sorry, messing with q_shared.h/.c is a very dangerous task Link to comment Share on other sites More sharing options...
razorace Posted January 30, 2005 Share Posted January 30, 2005 What are you trying to do? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.