[SCM] exiv2 packaging branch, master, updated. debian/0.25-3.1-3734-gdcbc29a

Maximiliano Curia maxy at moszumanska.debian.org
Thu Jul 13 17:45:51 UTC 2017


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=d88a3f5

The following commit has been merged in the master branch:
commit d88a3f5556d98ad94f5974118dee867fa546c21f
Author: Robin Mills <robin at clanmills.com>
Date:   Thu Oct 29 19:39:11 2015 +0000

    #1132.  Fix submitted.
---
 src/basicio.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/basicio.cpp b/src/basicio.cpp
index 1adf665..a813d06 100644
--- a/src/basicio.cpp
+++ b/src/basicio.cpp
@@ -281,7 +281,7 @@ namespace Exiv2 {
             // No extended attributes in source file
             return;
         }
-        char namebuf[namebufSize];
+        char* namebuf = new char[namebufSize];
         if (::listxattr(src.p_->path_.c_str(), namebuf, sizeof(namebuf), 0) != namebufSize) {
             throw Error(2, src.p_->path_, strError(), "listxattr");
         }
@@ -292,7 +292,7 @@ namespace Exiv2 {
             if (valueSize < 0) {
                 throw Error(2, src.p_->path_, strError(), "getxattr");
             }
-            char value[valueSize];
+            char* value = new char[valueSize];
             if (::getxattr(src.p_->path_.c_str(), name, value, sizeof(value), 0, 0) != valueSize) {
                 throw Error(2, src.p_->path_, strError(), "getxattr");
             }
@@ -304,8 +304,10 @@ namespace Exiv2 {
             if (::setxattr(path_.c_str(), name, value, valueSize, 0, 0) != 0) {
                 throw Error(2, path_, strError(), "setxattr");
             }
+            delete [] value;
 #endif
         }
+        delete [] namebuf;
 #else
         // No xattr support for this platform.
 #endif

-- 
exiv2 packaging



More information about the pkg-kde-commits mailing list