Commit b207db02e for imagemagick.org
commit b207db02e050b4b5c1fe3c5f03a413475ea31d3b
Author: Cristy <urban-warrior@imagemagick.org>
Date: Sun Jun 14 06:26:24 2026 -0400
revert
diff --git a/MagickCore/blob.c b/MagickCore/blob.c
index 62d0ec60c..6f58d519a 100644
--- a/MagickCore/blob.c
+++ b/MagickCore/blob.c
@@ -3403,7 +3403,7 @@ MagickExport MagickBooleanType OpenBlob(const ImageInfo *image_info,
blob_info->exempt=MagickTrue;
return(SetStreamBuffering(image_info,blob_info));
}
- if ((strncmp(filename,"fd:",3) == 0) &&
+ if ((LocaleNCompare(filename,"fd:",3) == 0) &&
(IsGeometry(filename+3) != MagickFalse))
{
char
diff --git a/MagickWand/script-token.c b/MagickWand/script-token.c
index 8d29b335c..ba36e91b8 100644
--- a/MagickWand/script-token.c
+++ b/MagickWand/script-token.c
@@ -217,7 +217,7 @@ WandExport ScriptTokenInfo *AcquireScriptTokenInfo(const char *filename)
token_info->stream=stdin;
token_info->opened=MagickFalse;
}
- else if (strncmp(filename,"fd:",3) == 0 ) {
+ else if (LocaleNCompare(filename,"fd:",3) == 0 ) {
token_info->stream=fdopen(StringToLong(filename+3),"r");
token_info->opened=MagickFalse;
}