mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-24 04:41:25 +00:00
used the wrong va_list there... why didn't gcc warn about this being uninitialized...
This commit is contained in:
parent
579ac3dd5d
commit
4dad7c7d50
1 changed files with 1 additions and 3 deletions
4
error.c
4
error.c
|
@ -39,14 +39,12 @@ int levelcolor[] = {
|
|||
|
||||
void vprintmsg(int level, const char *name, size_t line, char *errtype, const char *msg, va_list ap)
|
||||
{
|
||||
va_list va;
|
||||
|
||||
#ifndef WIN32
|
||||
fprintf (stderr, "\033[0;%dm%s:%d \033[0;%dm%s: \033[0m", CON_CYAN, name, (int)line, levelcolor[level], errtype);
|
||||
#else
|
||||
fprintf (stderr, "%s:%d %s: ", name, line, errtype);
|
||||
#endif
|
||||
vfprintf(stderr, msg, va);
|
||||
vfprintf(stderr, msg, ap);
|
||||
fprintf (stderr, "\n");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue