Fix linux GUI crash [Hagen Fritsch]

This commit is contained in:
adam@algroup.co.uk 2010-04-20 08:22:05 +00:00
parent 15cdabd474
commit 346ad5fbbb

View file

@ -263,7 +263,7 @@ void ProxWidget::paintEvent(QPaintEvent *event)
painter.setPen(QColor(255, 0, 255));
painter.drawPath(cursorBPath);
char str[100];
char str[200];
sprintf(str, "@%d max=%d min=%d mean=%d n=%d/%d dt=%d [%.3f] zoom=%.3f CursorA=%d [%d] CursorB=%d [%d]",
GraphStart, yMax, yMin, yMean, n, GraphTraceLen,
CursorBPos - CursorAPos, (CursorBPos - CursorAPos)/CursorScaleFactor,GraphPixelsPerPoint,CursorAPos,GraphBuffer[CursorAPos],CursorBPos,GraphBuffer[CursorBPos]);