From e21dc9672535f72681a722d45c90c8211fc411ff Mon Sep 17 00:00:00 2001 From: cristy Date: Thu, 12 Jan 2012 17:22:31 +0000 Subject: [PATCH] --- MagickCore/utility.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MagickCore/utility.c b/MagickCore/utility.c index bf3be3ea4..a8e4e9003 100644 --- a/MagickCore/utility.c +++ b/MagickCore/utility.c @@ -1843,7 +1843,8 @@ MagickExport int SystemCommand(const MagickBooleanType asynchronous, #if !defined(MAGICKCORE_HAVE_EXECVP) status=system(shell_command); #else - if ((asynchronous != MagickFalse) || (strspn(shell_command,"&;<>|") == 0)) + if ((asynchronous != MagickFalse) || + (strpbrk(shell_command,"&;<>|") == (char *) NULL)) status=system(shell_command); else { -- 2.40.0