// 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); }
// 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(); }
// 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); }