Mercurial > hg > fxanalyse
diff DDS_Fox.c @ 63:2320f5fc66aa
Fix varargs handling in DDS Fox driver error function
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Mon, 29 Oct 2012 14:43:48 +0100 |
parents | 7ab3fb870ef8 |
children | 64a7a1d3d75c |
line wrap: on
line diff
--- 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");