# HG changeset patch # User Daniele Nicolodi # Date 1351518228 -3600 # Node ID 2320f5fc66aabc56c19db582ac286dc04f2681f2 # Parent 53dbce5f0745c1f30fd08e4bde99493f1a6c222e Fix varargs handling in DDS Fox driver error function diff -r 53dbce5f0745 -r 2320f5fc66aa DDS_Fox.c --- a/DDS_Fox.c Mon Oct 29 14:43:40 2012 +0100 +++ b/DDS_Fox.c Mon Oct 29 14:43:48 2012 +0100 @@ -47,7 +47,7 @@ void _error(const char *file, int line, const char *func, const char *frmt, ...) { va_list args; - va_start(args, line); + va_start(args, frmt); fprintf(stderr, "ERROR: %s:%d:%s: ", file, line, func); vfprintf(stderr, frmt, args); fprintf(stderr, "\n");