b132ec3
commit 6c1db4afb98e1718fa237c6310170b5980d4af81
b132ec3
Author: Francesco Riosa <francesco+kde@pnpitalia.it>
b132ec3
Date:   Wed May 16 00:09:09 2012 +0200
b132ec3
b132ec3
    dkCmsTakeProfileID allocate right size
b132ec3
    
b132ec3
    Thanks Kevin Kofler and Nucleo(Fedora) for squashing it.
b132ec3
    BUG: 299886
b132ec3
b132ec3
diff --git a/libs/dklcms/digikam-lcms.cpp b/libs/dklcms/digikam-lcms.cpp
b132ec3
index 468eab6..f8542d6 100644
b132ec3
--- a/libs/dklcms/digikam-lcms.cpp
b132ec3
+++ b/libs/dklcms/digikam-lcms.cpp
b132ec3
@@ -491,7 +491,7 @@ LCMSAPI DWORD LCMSEXPORT dkCmsTakeHeaderFlags(cmsHPROFILE hProfile)
b132ec3
 
b132ec3
 LCMSAPI const BYTE* LCMSEXPORT dkCmsTakeProfileID(cmsHPROFILE hProfile)
b132ec3
 {
b132ec3
-    cmsUInt8Number* ProfileID = new cmsUInt8Number();
b132ec3
+    cmsUInt8Number* ProfileID = new cmsUInt8Number[16];
b132ec3
     cmsGetHeaderProfileID(hProfile, ProfileID);
b132ec3
     return static_cast<BYTE*>( ProfileID );
b132ec3
 }