From 551a0bb353c7ffff4b307956a7cc7a023bf36863 Mon Sep 17 00:00:00 2001 From: ulf69 Date: Tue, 28 Sep 2004 21:32:21 +0000 Subject: fixed a potential crash when loading adresses from any adressbook file. --- (limited to 'kabc/vcardformatimpl.cpp') diff --git a/kabc/vcardformatimpl.cpp b/kabc/vcardformatimpl.cpp index 2d6eb3d..1bf2cde 100644 --- a/kabc/vcardformatimpl.cpp +++ b/kabc/vcardformatimpl.cpp @@ -261,6 +261,7 @@ bool VCardFormatImpl::loadAddressee( Addressee& addressee, VCard *v ) default: kdDebug(5700) << "VCardFormat::load(): Unsupported entity: " << int( type ) << ": " << cl->asString() << endl; + qDebug("VCardFormat::load(): Unsupported entity: %i: %s ", int(type), (const char*)cl->asString()); break; } } @@ -639,6 +640,7 @@ QString VCardFormatImpl::readTextValue( ContentLine *cl ) return QString::fromUtf8( value->asString() ); } else { kdDebug(5700) << "No value: " << cl->asString() << endl; + qDebug("No value: %s", (const char*)(cl->asString())); return QString::null; } } -- cgit v0.9.0.2