X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/6658905f18a1eebc148836f26c731dea9c1377dc..8fcbf652dab8846dd8a2dcb17812af6528539950:/linux/gui.c?ds=sidebyside diff --git a/linux/gui.c b/linux/gui.c index 6d442f0e..d31c5287 100644 --- a/linux/gui.c +++ b/linux/gui.c @@ -9,12 +9,14 @@ int GraphBuffer[MAX_GRAPH_TRACE_LEN]; int GraphTraceLen; double CursorScaleFactor; +int PlotGridX, PlotGridY; int CommandFinished; +int offline; static char *logfilename = "proxmark3.log"; void PrintToScrollback(char *fmt, ...) { - va_list argptr; + va_list argptr, argptr2; static FILE *logfile = NULL; static int logging=1; @@ -27,7 +29,9 @@ void PrintToScrollback(char *fmt, ...) { } va_start(argptr, fmt); + va_copy(argptr2, argptr); vprintf(fmt, argptr); + va_end(argptr); printf("\n"); if (logging && logfile) { #if 0 @@ -41,11 +45,11 @@ void PrintToScrollback(char *fmt, ...) { fprintf(logfile,"%s ", zeit); #endif - vfprintf(logfile, fmt, argptr); + vfprintf(logfile, fmt, argptr2); fprintf(logfile,"\n"); fflush(logfile); } - va_end(argptr); + va_end(argptr2); } void setlogfilename(char *fn)