mirror of
https://github.com/ImageMagick/ImageMagick.git
synced 2026-05-31 11:18:42 +02:00
Fix logic
This commit is contained in:
+1
-1
@@ -2592,7 +2592,7 @@ MagickExport MagickBooleanType SubstituteString(char **string,
|
||||
{
|
||||
if (search_extent == 0)
|
||||
search_extent=strlen(search);
|
||||
if ((*p == *search) && (strncmp(p,search,search_extent) != 0))
|
||||
if ((*p != *search) || (strncmp(p,search,search_extent) != 0))
|
||||
continue;
|
||||
/*
|
||||
We found a match.
|
||||
|
||||
Reference in New Issue
Block a user