From e22d244e1766aa4fd41bf54625f22421d04f5571 Mon Sep 17 00:00:00 2001 From: Francois Andriot Date: Thu, 1 Aug 2013 14:54:25 +0200 Subject: Fix 'format not a string literal' error --- src/barcode/barcode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/barcode') diff --git a/src/barcode/barcode.cpp b/src/barcode/barcode.cpp index 648f1a1..5eb229c 100644 --- a/src/barcode/barcode.cpp +++ b/src/barcode/barcode.cpp @@ -172,14 +172,14 @@ void barcodeRecognitionThread::printArray( int array[10][13][2], int level ) for (int i = 0; i < 10; i++) { TQCString temp; temp.setNum( i ); - fprintf( stderr, temp + " : " ); + fprintf( stderr, "%s : ", *(temp) ); for (int j = 0; j < 13; j++) { if (array[i][j][level] == -1) fprintf( stderr, "x " ); else { TQCString temp; temp.setNum( array[i][j][level] ); - fprintf( stderr, temp + " " ); + fprintf( stderr, "%s ", *(temp) ); } } fprintf( stderr, "\n" ); -- cgit v1.2.1