From: cristy Date: Thu, 12 Jan 2012 17:22:31 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~6388 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e21dc9672535f72681a722d45c90c8211fc411ff;p=imagemagick --- 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 {