diff --git a/MagickCore/effect.c b/MagickCore/effect.c
index af69767..1cd1db4 100644
--- a/MagickCore/effect.c
+++ b/MagickCore/effect.c
@@ -1464,8 +1464,8 @@
*/
static void Hull(const ssize_t x_offset,const ssize_t y_offset,
- const size_t columns,const size_t rows,Quantum *f,Quantum *g,
- const int polarity)
+ const size_t columns,const size_t rows,const int polarity,Quantum *f,
+ Quantum *g)
{
MagickRealType
v;
@@ -1633,7 +1633,7 @@
for (i=0; i < (ssize_t) GetPixelChannels(image); i++)
{
PixelChannel
- channel;
+ channel;
PixelTrait
despeckle_traits,
@@ -1687,10 +1687,10 @@
(void) ResetMagickMemory(buffer,0,length*sizeof(*buffer));
for (k=0; k < 4; k++)
{
- Hull(X[k],Y[k],image->columns,image->rows,pixel,buffer,1);
- Hull(-X[k],-Y[k],image->columns,image->rows,pixel,buffer,1);
- Hull(-X[k],-Y[k],image->columns,image->rows,pixel,buffer,-1);
- Hull(X[k],Y[k],image->columns,image->rows,pixel,buffer,-1);
+ Hull(X[k],Y[k],image->columns,image->rows,1,pixel,buffer);
+ Hull(-X[k],-Y[k],image->columns,image->rows,1,pixel,buffer);
+ Hull(-X[k],-Y[k],image->columns,image->rows,-1,pixel,buffer);
+ Hull(X[k],Y[k],image->columns,image->rows,-1,pixel,buffer);
}
j=(ssize_t) image->columns+2;
for (y=0; y < (ssize_t) image->rows; y++)
diff --git a/MagickCore/utility.c b/MagickCore/utility.c
index a8e4e90..52ed792 100644
--- a/MagickCore/utility.c
+++ b/MagickCore/utility.c
@@ -1844,7 +1844,7 @@
status=system(shell_command);
#else
if ((asynchronous != MagickFalse) ||
- (strpbrk(shell_command,"&;<>|") == (char *) NULL))
+ (strpbrk(shell_command,"&;<>|") != (char *) NULL))
status=system(shell_command);
else
{
diff --git a/coders/tiff.c b/coders/tiff.c
index 2fd26e3..b06a8b8 100644
--- a/coders/tiff.c
+++ b/coders/tiff.c
@@ -1115,6 +1115,10 @@
TIFFClose(tiff);
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
}
+ quantum_info->endian=LSBEndian;
+ if (endian == FILLORDER_LSB2MSB)
+ quantum_info->endian=MSBEndian;
+ image->endian=quantum_info->endian;
if (sample_format == SAMPLEFORMAT_UINT)
status=SetQuantumFormat(image,quantum_info,UnsignedQuantumFormat);
if (sample_format == SAMPLEFORMAT_INT)
@@ -1690,9 +1694,6 @@
}
if (image->storage_class == PseudoClass)
image->depth=GetImageDepth(image,exception);
- image->endian=MSBEndian;
- if (endian == FILLORDER_LSB2MSB)
- image->endian=LSBEndian;
if ((photometric == PHOTOMETRIC_LOGL) ||
(photometric == PHOTOMETRIC_MINISBLACK) ||
(photometric == PHOTOMETRIC_MINISWHITE))