]> Zhao Yanbai Git Server - minix.git/commitdiff
fix for wrong arg to va_end() in panic() (thanks tveerman)
authorBen Gras <ben@minix3.org>
Mon, 8 Mar 2010 14:36:55 +0000 (14:36 +0000)
committerBen Gras <ben@minix3.org>
Mon, 8 Mar 2010 14:36:55 +0000 (14:36 +0000)
lib/libsys/panic.c

index 0abab10db2f6c21c1f1be1df4f82fe68c76780f1..c2694c5defa2bc0ee3c1c69031de1f330832dc35 100644 (file)
@@ -33,7 +33,7 @@ PUBLIC void panic(const char *fmt, ...)
   if(fmt) {
        va_start(args, fmt);
        vprintf(fmt, args);
-       va_end(fmt);
+       va_end(args);
   } else {
        printf("no message\n");
   }