Fixed bug in OpenCL kernel and fixed name of method.
diff --git a/MagickCore/opencl.c b/MagickCore/opencl.c
index f7e8ba9..4828146 100644
--- a/MagickCore/opencl.c
+++ b/MagickCore/opencl.c
@@ -1202,7 +1202,7 @@
MagickTrue);
}
-static void LogOpenCLBuildFature(MagickCLDevice device,const char *kernel,
+static void LogOpenCLBuildFailure(MagickCLDevice device,const char *kernel,
ExceptionInfo *exception)
{
char
@@ -1215,6 +1215,7 @@
(void) FormatLocaleString(filename,MagickPathExtent,"%s%s%s",
GetOpenCLCacheDirectory(),DirectorySeparator,"magick_badcl.cl");
+ (void) remove_utf8(filename);
(void) BlobToFile(filename,kernel,strlen(kernel),exception);
openCL_library->clGetProgramBuildInfo(device->program,device->deviceID,
@@ -1226,6 +1227,7 @@
(void) FormatLocaleString(filename,MagickPathExtent,"%s%s%s",
GetOpenCLCacheDirectory(),DirectorySeparator,"magick_badcl.log");
+ (void) remove_utf8(filename);
(void) BlobToFile(filename,log,logSize,exception);
}
@@ -1292,7 +1294,7 @@
{
(void) ThrowMagickException(exception,GetMagickModule(),DelegateWarning,
"clBuildProgram failed.","(%d)",(int)status);
- LogOpenCLBuildFature(device,kernel,exception);
+ LogOpenCLBuildFailure(device,kernel,exception);
return(MagickFalse);
}