fix a braino that causes args to /not/ get saved

This commit is contained in:
Bill Currie 2005-10-23 22:00:45 +00:00 committed by Jeff Teunissen
parent 088ae9d697
commit bb852eba75

View file

@ -419,10 +419,12 @@ Sys_Error (const char *error, ...)
va_list args; va_list args;
#ifdef VA_LIST_IS_ARRAY #ifdef VA_LIST_IS_ARRAY
va_list tmp_args; va_list tmp_args;
VA_COPY (tmp_args, args);
#endif #endif
va_start (args, error); va_start (args, error);
#ifdef VA_LIST_IS_ARRAY
VA_COPY (tmp_args, args);
#endif
sys_err_printf_function (error, args); sys_err_printf_function (error, args);
va_end (args); va_end (args);