]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/794
authorCristy <urban-warrior@imagemagick.org>
Sat, 30 Sep 2017 13:46:49 +0000 (09:46 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 30 Sep 2017 13:46:49 +0000 (09:46 -0400)
MagickCore/opencl.c

index 0191a80324a779c888368849f96b0723ba9f99e9..268652c72fd9b3666f121d84a5806a054fe70354 100644 (file)
@@ -2313,7 +2313,7 @@ static void LoadOpenCLDevices(MagickCLEnv clEnv)
 
       openCL_library->clGetPlatformInfo(platforms[i],CL_PLATFORM_NAME,0,NULL,
         &length);
-      device->platform_name=AcquireQuantumMemory(length,
+      device->platform_name=AcquireCriticalMemory(length*
         sizeof(*device->platform_name));
       openCL_library->clGetPlatformInfo(platforms[i],CL_PLATFORM_NAME,length,
         device->platform_name,NULL);