diff --git a/error.c b/error.c index c34abdb..8fbd91f 100644 --- a/error.c +++ b/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"); }