[Digikam-devel] [Bug 134999] crash in exiv2 when searching for new images
Andreas Huggel
ahuggel at gmx.net
Thu Dec 7 01:30:10 GMT 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=134999
------- Additional Comments From ahuggel gmx net 2006-12-07 02:30 -------
Please try this on top of Marcel's patch. It assumes c_str() only allocates memory up to the first 0 byte.
--- dmetadata.cpp 2006-12-07 09:05:02.000000000 +0800
+++ dmetadata2.cpp 2006-12-07 09:18:36.000000000 +0800
@ -1195,8 +1195,8 @
// Use whatever has the larger score, local or ASCII
if (localScore >= 0 && localScore >= latin1Score)
{
- //return localCodec->toUnicode(value.c_str(), value.length());
- const char *chars = value.c_str();
+ //return localCodec->toUnicode(value.data(), value.length());
+ const char *chars = value.data();
uint len = value.length();
// Code from QLatin15Codec::toUnicode
-ahu.
More information about the Digikam-devel
mailing list