gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r1521 - Extractor/src/plugins/exiv2


From: grothoff
Subject: [GNUnet-SVN] r1521 - Extractor/src/plugins/exiv2
Date: Thu, 14 Jul 2005 07:57:31 -0700 (PDT)

Author: grothoff
Date: 2005-07-14 07:57:28 -0700 (Thu, 14 Jul 2005)
New Revision: 1521

Modified:
   Extractor/src/plugins/exiv2/exiv2extractor.cc
Log:
fixing segv

Modified: Extractor/src/plugins/exiv2/exiv2extractor.cc
===================================================================
--- Extractor/src/plugins/exiv2/exiv2extractor.cc       2005-07-14 14:52:42 UTC 
(rev 1520)
+++ Extractor/src/plugins/exiv2/exiv2extractor.cc       2005-07-14 14:57:28 UTC 
(rev 1521)
@@ -70,8 +70,9 @@
     Exiv2::ExifKey ek(key);
     Exiv2::ExifData::const_iterator md = exifData.findKey(ek);
     if (md != exifData.end()) {
-       str = Exiv2::toString(*md).c_str();
-        while (isspace(str[0]) && (strlen(str) > 0)) str++;
+       std::string ccstr = Exiv2::toString(*md);
+       str = ccstr.c_str();
+        while ( (strlen(str) > 0) && isspace(str[0])) str++;
        if (strlen(str) > 0)
         result = addKeyword(type, 
                             strdup(str),





reply via email to

[Prev in Thread] Current Thread [Next in Thread]