Author: Hans de Goede Forwarded: no Description: Fix arcdie crash when called with more then 1 variable argument Add proper vararg handling to fix crash on 64 bit machines when arcdie gets called with more then 1 variable argument. Signed-off-by: Hans de Goede --- Index: arc/arcmisc.c =================================================================== --- arc.orig/arcmisc.c +++ arc/arcmisc.c @@ -6,6 +6,7 @@ */ #include +#include #include #include "arc.h" @@ -225,11 +226,13 @@ upper(string) } /* VARARGS1 */ VOID -arcdie(s, arg1, arg2, arg3) - char *s; +arcdie(const char *s, ...) { + va_list args; fprintf(stderr, "ARC: "); - fprintf(stderr, s, arg1, arg2, arg3); + va_start(args, s); + vfprintf(stderr, s, args); + va_end(args); fprintf(stderr, "\n"); #if UNIX perror("UNIX");