summaryrefslogtreecommitdiffstats
path: root/kbarcode/pixmapbarcode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbarcode/pixmapbarcode.cpp')
-rw-r--r--kbarcode/pixmapbarcode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kbarcode/pixmapbarcode.cpp b/kbarcode/pixmapbarcode.cpp
index dbe3a62..785441b 100644
--- a/kbarcode/pixmapbarcode.cpp
+++ b/kbarcode/pixmapbarcode.cpp
@@ -248,7 +248,7 @@ TQRect PixmapBarcode::bbox( const char* data, long size )
if( text.startsWith( bbox ) )
{
text = text.right( text.length() - len );
- sscanf( (const char*)text, "%d %d %d %d", &x, &y, &w, &h );
+ sscanf( text.latin1(), "%d %d %d %d", &x, &y, &w, &h );
s = TQRect( x, y, w, h );
break;
}