register unsigned char
*restrict q;
+ size_t
+ length;
+
ssize_t
y;
}
return;
}
+ length=strlen(map);
for (y=0; y < (ssize_t) roi->height; y++)
{
p=GetVirtualPixels(image,roi->x,roi->y+y,roi->width,1,exception);
register ssize_t
i;
- for (i=0; i < (ssize_t) strlen(map); i++)
+ for (i=0; i < (ssize_t) length; i++)
{
*q=0;
switch (quantum_map[i])
register ssize_t
x;
+ size_t
+ length;
+
ssize_t
y;
}
return;
}
+ length=strlen(map);
for (y=0; y < (ssize_t) roi->height; y++)
{
p=GetVirtualPixels(image,roi->x,roi->y+y,roi->width,1,exception);
register ssize_t
i;
- for (i=0; i < (ssize_t) strlen(map); i++)
+ for (i=0; i < (ssize_t) length; i++)
{
*q=0;
switch (quantum_map[i])
register ssize_t
x;
+ size_t
+ length;
+
ssize_t
y;
}
return;
}
+ length=strlen(map);
for (y=0; y < (ssize_t) roi->height; y++)
{
p=GetVirtualPixels(image,roi->x,roi->y+y,roi->width,1,exception);
register ssize_t
i;
- for (i=0; i < (ssize_t) strlen(map); i++)
+ for (i=0; i < (ssize_t) length; i++)
{
*q=0;
switch (quantum_map[i])
register unsigned int
*restrict q;
+ size_t
+ length;
+
ssize_t
y;
}
return;
}
+ length=strlen(map);
for (y=0; y < (ssize_t) roi->height; y++)
{
p=GetVirtualPixels(image,roi->x,roi->y+y,roi->width,1,exception);
register ssize_t
i;
- for (i=0; i < (ssize_t) strlen(map); i++)
+ for (i=0; i < (ssize_t) length; i++)
{
*q=0;
switch (quantum_map[i])
register MagickSizeType
*restrict q;
+ size_t
+ length;
+
ssize_t
y;
}
return;
}
+ length=strlen(map);
for (y=0; y < (ssize_t) roi->height; y++)
{
p=GetVirtualPixels(image,roi->x,roi->y+y,roi->width,1,exception);
register ssize_t
i;
- for (i=0; i < (ssize_t) strlen(map); i++)
+ for (i=0; i < (ssize_t) length; i++)
{
*q=0;
switch (quantum_map[i])
register ssize_t
x;
+ size_t
+ length;
+
ssize_t
y;
}
return;
}
+ length=strlen(map);
for (y=0; y < (ssize_t) roi->height; y++)
{
p=GetVirtualPixels(image,roi->x,roi->y+y,roi->width,1,exception);
register ssize_t
i;
- for (i=0; i < (ssize_t) strlen(map); i++)
+ for (i=0; i < (ssize_t) length; i++)
{
*q=(Quantum) 0;
switch (quantum_map[i])
register ssize_t
x;
- ssize_t
- y;
-
register unsigned short
*restrict q;
+ size_t
+ length;
+
+ ssize_t
+ y;
+
q=(unsigned short *) pixels;
if (LocaleCompare(map,"BGR") == 0)
{
}
return;
}
+ length=strlen(map);
for (y=0; y < (ssize_t) roi->height; y++)
{
p=GetVirtualPixels(image,roi->x,roi->y+y,roi->width,1,exception);
register ssize_t
i;
- for (i=0; i < (ssize_t) strlen(map); i++)
+ for (i=0; i < (ssize_t) length; i++)
{
*q=0;
switch (quantum_map[i])
register ssize_t
i;
+ size_t
+ length;
+
assert(image != (Image *) NULL);
assert(image->signature == MagickSignature);
if (image->debug != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
- quantum_map=(QuantumType *) AcquireQuantumMemory(strlen(map),
- sizeof(*quantum_map));
+ length=strlen(map);
+ quantum_map=(QuantumType *) AcquireQuantumMemory(length,sizeof(*quantum_map));
if (quantum_map == (QuantumType *) NULL)
{
(void) ThrowMagickException(exception,GetMagickModule(),
ResourceLimitError,"MemoryAllocationFailed","'%s'",image->filename);
return(MagickFalse);
}
- for (i=0; i < (ssize_t) strlen(map); i++)
+ for (i=0; i < (ssize_t) length; i++)
{
switch (map[i])
{
register ssize_t
x;
+ size_t
+ length;
+
ssize_t
y;
}
return;
}
+ length=strlen(map);
for (y=0; y < (ssize_t) roi->height; y++)
{
q=GetAuthenticPixels(image,roi->x,roi->y+y,roi->width,1,exception);
register ssize_t
i;
- for (i=0; i < (ssize_t) strlen(map); i++)
+ for (i=0; i < (ssize_t) length; i++)
{
switch (quantum_map[i])
{
register ssize_t
x;
+ size_t
+ length;
+
ssize_t
y;
}
return;
}
+ length=strlen(map);
for (y=0; y < (ssize_t) roi->height; y++)
{
q=GetAuthenticPixels(image,roi->x,roi->y+y,roi->width,1,exception);
register ssize_t
i;
- for (i=0; i < (ssize_t) strlen(map); i++)
+ for (i=0; i < (ssize_t) length; i++)
{
switch (quantum_map[i])
{
register ssize_t
x;
+ size_t
+ length;
+
ssize_t
y;
}
return;
}
+ length=strlen(map);
for (y=0; y < (ssize_t) roi->height; y++)
{
q=GetAuthenticPixels(image,roi->x,roi->y+y,roi->width,1,exception);
register ssize_t
i;
- for (i=0; i < (ssize_t) strlen(map); i++)
+ for (i=0; i < (ssize_t) length; i++)
{
switch (quantum_map[i])
{
register ssize_t
x;
+ size_t
+ length;
+
ssize_t
y;
}
return;
}
+ length=strlen(map);
for (y=0; y < (ssize_t) roi->height; y++)
{
q=GetAuthenticPixels(image,roi->x,roi->y+y,roi->width,1,exception);
register ssize_t
i;
- for (i=0; i < (ssize_t) strlen(map); i++)
+ for (i=0; i < (ssize_t) length; i++)
{
switch (quantum_map[i])
{
register ssize_t
x;
+ size_t
+ length;
+
ssize_t
y;
}
return;
}
+ length=strlen(map);
for (y=0; y < (ssize_t) roi->height; y++)
{
q=GetAuthenticPixels(image,roi->x,roi->y+y,roi->width,1,exception);
register ssize_t
i;
- for (i=0; i < (ssize_t) strlen(map); i++)
+ for (i=0; i < (ssize_t) length; i++)
{
switch (quantum_map[i])
{
register ssize_t
x;
+ size_t
+ length;
+
ssize_t
y;
}
return;
}
+ length=strlen(map);
for (y=0; y < (ssize_t) roi->height; y++)
{
q=GetAuthenticPixels(image,roi->x,roi->y+y,roi->width,1,exception);
register ssize_t
i;
- for (i=0; i < (ssize_t) strlen(map); i++)
+ for (i=0; i < (ssize_t) length; i++)
{
switch (quantum_map[i])
{
register ssize_t
x;
+ size_t
+ length;
+
ssize_t
y;
}
return;
}
+ length=strlen(map);
for (y=0; y < (ssize_t) roi->height; y++)
{
q=GetAuthenticPixels(image,roi->x,roi->y+y,roi->width,1,exception);
register ssize_t
i;
- for (i=0; i < (ssize_t) strlen(map); i++)
+ for (i=0; i < (ssize_t) length; i++)
{
switch (quantum_map[i])
{
register ssize_t
i;
+ size_t
+ length;
+
/*
Allocate image structure.
*/
assert(image->signature == MagickSignature);
if (image->debug != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
- quantum_map=(QuantumType *) AcquireQuantumMemory(strlen(map),
- sizeof(*quantum_map));
+ length=strlen(map);
+ quantum_map=(QuantumType *) AcquireQuantumMemory(length,sizeof(*quantum_map));
if (quantum_map == (QuantumType *) NULL)
ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed",
image->filename);
- for (i=0; i < (ssize_t) strlen(map); i++)
+ for (i=0; i < (ssize_t) length; i++)
{
switch (map[i])
{