]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 12 Jan 2012 17:22:31 +0000 (17:22 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 12 Jan 2012 17:22:31 +0000 (17:22 +0000)
MagickCore/utility.c

index bf3be3ea4ba2aeddd94fe951921baf89e34ae413..a8e4e90039056e8b350fc2fc74a7101dfb6f8811 100644 (file)
@@ -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
     {