示例#1
0
// this is only here so the functions in q_shared.c and q_shwin.c can link
void Sys_Error (char *error, ...)
{
	va_list		argptr;
	char		text[1024];

	va_start (argptr, error);
	vsprintf (text, error, argptr);
	va_end (argptr);

	gi.error (ERR_FATAL, "%s", text);
}
示例#2
0
文件: g_main.c 项目: turol/webquake2
// this is only here so the functions in q_shared.c and q_shwin.c can link
void Sys_Error(const char *error, ...){
	va_list	argptr;
	char	text[1024];
	
	va_start(argptr, error);
	vsprintf(text, error, argptr);
	va_end(argptr);
	
	gi.error("%s", text);
	__builtin_unreachable();
}
示例#3
0
文件: g_main.c 项目: qbism/qbq2
// this is only here so the functions in q_shared.c and q_shwin.c can link
void Sys_Error (char *error, ...)
{
	va_list		argptr;
	char		text[1024];

	va_start (argptr, error);
//	vsprintf (text, error, argptr);
	Q_vsnprintf (text, sizeof(text), error, argptr);	// Knightmare- buffer overflow fix
	va_end (argptr);

	gi.error (ERR_FATAL, "%s", text);
}