FinalizeSignature(signature_info);
(void) memset(input_block,0,sizeof(input_block));
digest=GetStringInfoDatum(GetSignatureDigest(signature_info));
- (void) CopyMagickMemory(input_block,digest,MagickMin(AESBlocksize,
+ (void) memcpy(input_block,digest,MagickMin(AESBlocksize,
GetSignatureDigestsize(signature_info))*sizeof(*input_block));
signature_info=DestroySignatureInfo(signature_info);
/*
p=pixels;
for (x=0; x < (ssize_t) length; x+=AESBlocksize)
{
- (void) CopyMagickMemory(output_block,input_block,AESBlocksize*
+ (void) memcpy(output_block,input_block,AESBlocksize*
sizeof(*output_block));
IncrementCipherNonce(AESBlocksize,input_block);
EncipherAESBlock(aes_info,output_block,output_block);
p[i]^=output_block[i];
p+=AESBlocksize;
}
- (void) CopyMagickMemory(output_block,input_block,AESBlocksize*
+ (void) memcpy(output_block,input_block,AESBlocksize*
sizeof(*output_block));
EncipherAESBlock(aes_info,output_block,output_block);
for (i=0; x < (ssize_t) length; x++)
signature=DestroyString(signature);
(void) memset(input_block,0,sizeof(input_block));
digest=GetStringInfoDatum(GetSignatureDigest(signature_info));
- (void) CopyMagickMemory(input_block,digest,MagickMin(AESBlocksize,
+ (void) memcpy(input_block,digest,MagickMin(AESBlocksize,
GetSignatureDigestsize(signature_info))*sizeof(*input_block));
signature_info=DestroySignatureInfo(signature_info);
/*
p=pixels;
for (x=0; x < (ssize_t) length; x+=AESBlocksize)
{
- (void) CopyMagickMemory(output_block,input_block,AESBlocksize*
+ (void) memcpy(output_block,input_block,AESBlocksize*
sizeof(*output_block));
IncrementCipherNonce(AESBlocksize,input_block);
EncipherAESBlock(aes_info,output_block,output_block);
p[i]^=output_block[i];
p+=AESBlocksize;
}
- (void) CopyMagickMemory(output_block,input_block,AESBlocksize*
+ (void) memcpy(output_block,input_block,AESBlocksize*
sizeof(*output_block));
EncipherAESBlock(aes_info,output_block,output_block);
for (i=0; x < (ssize_t) length; x++)
*/
datum=GetStringInfoDatum(aes_info->key);
(void) memset(datum,0,GetStringInfoLength(aes_info->key));
- (void) CopyMagickMemory(datum,GetStringInfoDatum(key),MagickMin(
+ (void) memcpy(datum,GetStringInfoDatum(key),MagickMin(
GetStringInfoLength(key),GetStringInfoLength(aes_info->key)));
for (i=0; i < n; i++)
aes_info->encipher_key[i]=datum[4*i] | (datum[4*i+1] << 8) |
if (clone_info->dash_pattern == (double *) NULL)
ThrowFatalException(ResourceLimitFatalError,
"UnableToAllocateDashPattern");
- (void) CopyMagickMemory(clone_info->dash_pattern,draw_info->dash_pattern,
- (size_t) (x+1)*sizeof(*clone_info->dash_pattern));
+ (void) memcpy(clone_info->dash_pattern,draw_info->dash_pattern,(size_t)
+ (x+1)*sizeof(*clone_info->dash_pattern));
}
clone_info->gradient=draw_info->gradient;
if (draw_info->gradient.stops != (StopInfo *) NULL)
if (clone_info->gradient.stops == (StopInfo *) NULL)
ThrowFatalException(ResourceLimitFatalError,
"UnableToAllocateDashPattern");
- (void) CopyMagickMemory(clone_info->gradient.stops,
+ (void) memcpy(clone_info->gradient.stops,
draw_info->gradient.stops,(size_t) number_stops*
sizeof(*clone_info->gradient.stops));
}
polygon_info->edges[edge].points);
polygon_info->number_edges--;
if (edge < polygon_info->number_edges)
- (void) CopyMagickMemory(polygon_info->edges+edge,polygon_info->edges+edge+1,
+ (void) memmove(polygon_info->edges+edge,polygon_info->edges+edge+1,
(size_t) (polygon_info->number_edges-edge)*sizeof(*polygon_info->edges));
return(polygon_info->number_edges);
}
polygon_primitive);
return((PrimitiveInfo *) NULL);
}
- (void) CopyMagickMemory(polygon_primitive,primitive_info,(size_t)
+ (void) memcpy(polygon_primitive,primitive_info,(size_t)
number_vertices*sizeof(*polygon_primitive));
closed_path=
(fabs(primitive_info[number_vertices-1].point.x-primitive_info[0].point.x) < DrawEpsilon) &&
GetBlobSize(image)+1);
if (draw_info->primitive != (char *) NULL)
{
- (void) CopyMagickMemory(draw_info->primitive,GetBlobStreamData(image),
+ (void) memcpy(draw_info->primitive,GetBlobStreamData(image),
(size_t) GetBlobSize(image));
draw_info->primitive[GetBlobSize(image)]='\0';
}
source_pixels[v*width+u]=roll_pixels[i++];
}
}
- (void) CopyMagickMemory(roll_pixels,source_pixels,height*width*
+ (void) memcpy(roll_pixels,source_pixels,height*width*
sizeof(*source_pixels));
source_info=RelinquishVirtualMemory(source_info);
return(MagickTrue);
magnitude_view=DestroyCacheView(magnitude_view);
status=InverseQuadrantSwap(fourier_info->width,fourier_info->height,
magnitude_pixels,inverse_pixels);
- (void) CopyMagickMemory(magnitude_pixels,inverse_pixels,fourier_info->height*
+ (void) memcpy(magnitude_pixels,inverse_pixels,fourier_info->height*
fourier_info->center*sizeof(*magnitude_pixels));
i=0L;
phase_view=AcquireVirtualCacheView(phase_image,exception);
if (status != MagickFalse)
status=InverseQuadrantSwap(fourier_info->width,fourier_info->height,
phase_pixels,inverse_pixels);
- (void) CopyMagickMemory(phase_pixels,inverse_pixels,fourier_info->height*
+ (void) memcpy(phase_pixels,inverse_pixels,fourier_info->height*
fourier_info->center*sizeof(*phase_pixels));
inverse_info=RelinquishVirtualMemory(inverse_info);
/*
clone_image=DestroyImage(clone_image);
ThrowImageException(ResourceLimitError,"MemoryAllocationFailed");
}
- (void) CopyMagickMemory(clone_image->colormap,image->colormap,length*
+ (void) memcpy(clone_image->colormap,image->colormap,length*
sizeof(*clone_image->colormap));
}
if ((columns == 0) || (rows == 0))
sizeof(*blob));
if (blob != (unsigned char *) NULL)
{
- (void) CopyMagickMemory(blob,value,length);
+ (void) memcpy(blob,value,length);
blob[length]='\0';
}
UnlockResource(global);
if (gradient->stops == (StopInfo *) NULL)
ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed",
image->filename);
- (void) CopyMagickMemory(gradient->stops,stops,(size_t) number_stops*
+ (void) memcpy(gradient->stops,stops,(size_t) number_stops*
sizeof(*stops));
/*
Draw a gradient on the image.
clone_map=AcquirePixelChannelMap();
if (clone_map == (PixelChannelMap *) NULL)
return((PixelChannelMap *) NULL);
- (void) CopyMagickMemory(clone_map,channel_map,MaxPixelChannels*
+ (void) memcpy(clone_map,channel_map,MaxPixelChannels*
sizeof(*channel_map));
return(clone_map);
}
buffer[1]=(unsigned char) (quantum >> 16);
buffer[2]=(unsigned char) (quantum >> 8);
buffer[3]=(unsigned char) quantum;
- (void) CopyMagickMemory(p,buffer,4);
+ (void) memcpy(p,buffer,4);
}
static void WriteTo8BimProfile(Image *image,const char *name,
{
offset=(q-datum);
extract_profile=AcquireStringInfo(offset+extent);
- (void) CopyMagickMemory(extract_profile->datum,datum,offset);
+ (void) memcpy(extract_profile->datum,datum,offset);
}
else
{
if ((extract_extent & 0x01) != 0)
extract_extent++;
extract_profile=AcquireStringInfo(offset+extract_extent+extent);
- (void) CopyMagickMemory(extract_profile->datum,datum,offset-4);
+ (void) memcpy(extract_profile->datum,datum,offset-4);
WriteResourceLong(extract_profile->datum+offset-4,(unsigned int)
profile->length);
- (void) CopyMagickMemory(extract_profile->datum+offset,
+ (void) memcpy(extract_profile->datum+offset,
profile->datum,profile->length);
}
- (void) CopyMagickMemory(extract_profile->datum+offset+extract_extent,
+ (void) memcpy(extract_profile->datum+offset+extract_extent,
p+count,extent);
(void) AddValueToSplayTree((SplayTreeInfo *) image->profiles,
ConstantString("8bim"),CloneStringInfo(extract_profile));
buffer[1]=(unsigned char) (value >> 8);
buffer[2]=(unsigned char) (value >> 16);
buffer[3]=(unsigned char) (value >> 24);
- (void) CopyMagickMemory(p,buffer,4);
+ (void) memcpy(p,buffer,4);
return;
}
buffer[0]=(unsigned char) (value >> 24);
buffer[1]=(unsigned char) (value >> 16);
buffer[2]=(unsigned char) (value >> 8);
buffer[3]=(unsigned char) value;
- (void) CopyMagickMemory(p,buffer,4);
+ (void) memcpy(p,buffer,4);
}
static void WriteProfileShort(const EndianType endian,
{
buffer[0]=(unsigned char) value;
buffer[1]=(unsigned char) (value >> 8);
- (void) CopyMagickMemory(p,buffer,2);
+ (void) memcpy(p,buffer,2);
return;
}
buffer[0]=(unsigned char) (value >> 8);
buffer[1]=(unsigned char) value;
- (void) CopyMagickMemory(p,buffer,2);
+ (void) memcpy(p,buffer,2);
}
static MagickBooleanType Sync8BimProfile(Image *image,StringInfo *profile)
sizeof(*attribute));
if (attribute != (char *) NULL)
{
- (void) CopyMagickMemory(attribute,(char *) info,(size_t) count);
+ (void) memcpy(attribute,(char *) info,(size_t) count);
attribute[count]='\0';
info+=count;
length-=MagickMin(count,(ssize_t) length);
/*
Propagate the error as the last entry of the error queue.
*/
- (void) CopyMagickMemory(p->error,p->error+1,(ErrorQueueLength-1)*
+ (void) memmove(p->error,p->error+1,(ErrorQueueLength-1)*
sizeof(p->error[0]));
AssociateAlphaPixelInfo(cube_info,image->colormap+index,&color);
p->error[ErrorQueueLength-1].red=pixel.red-color.red;
if (random_info->secret_key == ~0UL)
{
key=GetRandomKey(random_info,sizeof(random_info->secret_key));
- (void) CopyMagickMemory(random_info->seed,GetStringInfoDatum(key),
+ (void) memcpy(random_info->seed,GetStringInfoDatum(key),
GetStringInfoLength(key));
key=DestroyStringInfo(key);
}
key=DestroyStringInfo(key);
FinalizeSignature(signature_info);
digest=GetSignatureDigest(signature_info);
- (void) CopyMagickMemory(random_info->seed,GetStringInfoDatum(digest),
+ (void) memcpy(random_info->seed,GetStringInfoDatum(digest),
MagickMin(GetSignatureDigestsize(signature_info),
sizeof(*random_info->seed)));
signature_info=DestroySignatureInfo(signature_info);
UpdateSignature(signature_info,random_info->nonce);
FinalizeSignature(signature_info);
IncrementRandomNonce(random_info->nonce);
- (void) CopyMagickMemory(p,GetStringInfoDatum(GetSignatureDigest(
+ (void) memcpy(p,GetStringInfoDatum(GetSignatureDigest(
signature_info)),GetSignatureDigestsize(signature_info));
p+=GetSignatureDigestsize(signature_info);
i-=GetSignatureDigestsize(signature_info);
i=GetStringInfoLength(signature_info->message)-signature_info->extent;
if (i > n)
i=n;
- (void) CopyMagickMemory(GetStringInfoDatum(signature_info->message)+
+ (void) memcpy(GetStringInfoDatum(signature_info->message)+
signature_info->extent,p,i);
n-=i;
p+=i;
n-=GetStringInfoLength(signature_info->message);
TransformSignature(signature_info);
}
- (void) CopyMagickMemory(GetStringInfoDatum(signature_info->message),p,n);
+ (void) memcpy(GetStringInfoDatum(signature_info->message),p,n);
signature_info->extent=n;
}
Replace string.
*/
if (search_extent != replace_extent)
- (void) CopyMagickMemory(p+replace_extent,p+search_extent,
+ (void) memmove(p+replace_extent,p+search_extent,
strlen(p+search_extent)+1);
- (void) CopyMagickMemory(p,replace,replace_extent);
+ (void) memcpy(p,replace,replace_extent);
p+=replace_extent-1;
}
return(status);
if (text_info->cursor != text_info->text)
{
text_info->cursor--;
- (void) CopyMagickString(text_info->cursor,text_info->cursor+1,
+ (void) memmove(text_info->cursor,text_info->cursor+1,
MagickPathExtent);
text_info->highlight=MagickFalse;
break;
/*
Already UTF-8.
*/
- (void) CopyMagickMemory(utf8,content,*length*sizeof(*utf8));
+ (void) memcpy(utf8,content,*length*sizeof(*utf8));
utf8[*length]='\0';
return(utf8);
}
{
*(xml++)='\n';
if (*xml == '\n')
- (void) CopyMagickMemory(xml,xml+1,strlen(xml));
+ (void) memmove(xml,xml+1,strlen(xml));
}
for (xml=p; ; )
{
xml++;
}
}
- (void) CopyMagickMemory(xml,strchr(xml,';')+1,strlen(strchr(xml,';')));
+ (void) memmove(xml,strchr(xml,';')+1,strlen(strchr(xml,';')));
}
else
if (((*xml == '&') && ((state == '&') || (state == ' ') ||
entity=strchr(xml,';');
}
if (entity != (char *) NULL)
- (void) CopyMagickMemory(xml+length,entity+1,strlen(entity));
+ (void) memcpy(xml+length,entity+1,strlen(entity));
(void) strncpy(xml,entities[i],length);
}
}
i=(ssize_t) strspn(xml,accept);
if (i != 0)
- (void) CopyMagickMemory(xml,xml+i,strlen(xml+i)+1);
+ (void) memmove(xml,xml+i,strlen(xml+i)+1);
while ((*xml != '\0') && (*xml != ' '))
xml++;
if (*xml == '\0')
predefined_entitites=(char **) AcquireMagickMemory(sizeof(sentinel));
if (predefined_entitites == (char **) NULL)
ThrowFatalException(ResourceLimitError,"MemoryAllocationFailed");
- (void) CopyMagickMemory(predefined_entitites,sentinel,sizeof(sentinel));
+ (void) memcpy(predefined_entitites,sentinel,sizeof(sentinel));
for (xml[length]='\0'; xml != (char *) NULL; )
{
while ((*xml != '\0') && (*xml != '<') && (*xml != '%'))
root->entities=(char **) AcquireMagickMemory(sizeof(predefined_entities));
if (root->entities == (char **) NULL)
return((XMLTreeInfo *) NULL);
- (void) CopyMagickMemory(root->entities,predefined_entities,
+ (void) memcpy(root->entities,predefined_entities,
sizeof(predefined_entities));
root->root.attributes=sentinel;
root->attributes=(char ***) root->root.attributes;
}
if (xml_info->attributes[i] != (char *) NULL)
xml_info->attributes[i]=DestroyString(xml_info->attributes[i]);
- (void) CopyMagickMemory(xml_info->attributes+i,xml_info->attributes+i+2,
- (size_t) (j-i)*sizeof(*xml_info->attributes));
+ (void) memmove(xml_info->attributes+i,xml_info->attributes+i+2,(size_t)
+ (j-i)*sizeof(*xml_info->attributes));
xml_info->attributes=(char **) ResizeQuantumMemory(xml_info->attributes,
(size_t) (j+2),sizeof(*xml_info->attributes));
if (xml_info->attributes == (char **) NULL)
ThrowFatalException(ResourceLimitFatalError,"UnableToAcquireString");
j-=2;
- (void) CopyMagickMemory(xml_info->attributes[j+1]+(i/2),
- xml_info->attributes[j+1]+(i/2)+1,(size_t) (((j+2)/2)-(i/2))*
- sizeof(**xml_info->attributes));
+ (void) memmove(xml_info->attributes[j+1]+(i/2),xml_info->attributes[j+1]+
+ (i/2)+1,(size_t) (((j+2)/2)-(i/2))*sizeof(**xml_info->attributes));
return(xml_info);
}
\f
if ((isspace((int) ((unsigned char) *p)) == 0) && (*p != '%'))
p++;
else
- (void) CopyMagickString(p,p+1,MagickPathExtent-(p-geometry));
+ (void) memmove(p,p+1,MagickPathExtent-(p-geometry));
}
flags=XWMGeometry(display,window_info->screen,geometry,default_geometry,
window_info->border_width,size_hints,&size_hints->x,&size_hints->y,
sizeof(*datum));
if (datum == (unsigned char *) NULL)
return((unsigned char *) NULL);
- (void) CopyMagickMemory(datum,GetStringInfoDatum(profile),
+ (void) memcpy(datum,GetStringInfoDatum(profile),
GetStringInfoLength(profile));
*length=(size_t) GetStringInfoLength(profile);
return(datum);
sizeof(*datum));
if (datum == (unsigned char *) NULL)
return((unsigned char *) NULL);
- (void) CopyMagickMemory(datum,GetStringInfoDatum(profile),
+ (void) memcpy(datum,GetStringInfoDatum(profile),
GetStringInfoLength(profile));
*length=GetStringInfoLength(profile);
profile=DestroyStringInfo(profile);
png=(unsigned char *) AcquireQuantumMemory(length+16,sizeof(*png));
if (png == (unsigned char *) NULL)
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
- (void) CopyMagickMemory(png,"\211PNG\r\n\032\n\000\000\000\015",12);
+ (void) memcpy(png,"\211PNG\r\n\032\n\000\000\000\015",12);
png[12]=(unsigned char) icon_info.planes;
png[13]=(unsigned char) (icon_info.planes >> 8);
png[14]=(unsigned char) icon_info.bits_per_pixel;
tag_length=strlen(ICC_PROFILE);
p=GetStringInfoDatum(custom_profile);
- (void) CopyMagickMemory(p,ICC_PROFILE,tag_length);
+ (void) memcpy(p,ICC_PROFILE,tag_length);
p[tag_length]='\0';
for (i=0; i < (ssize_t) GetStringInfoLength(profile); i+=65519L)
{
length=MagickMin(GetStringInfoLength(profile)-i,65519L);
p[12]=(unsigned char) ((i/65519L)+1);
p[13]=(unsigned char) (GetStringInfoLength(profile)/65519L+1);
- (void) CopyMagickMemory(p+tag_length+3,GetStringInfoDatum(profile)+i,
+ (void) memcpy(p+tag_length+3,GetStringInfoDatum(profile)+i,
length);
jpeg_write_marker(jpeg_info,ICC_MARKER,GetStringInfoDatum(
custom_profile),(unsigned int) (length+tag_length+3));
}
else
{
- (void) CopyMagickMemory(p,"Photoshop 3.0 8BIM\04\04\0\0\0\0",24);
+ (void) memcpy(p,"Photoshop 3.0 8BIM\04\04\0\0\0\0",24);
tag_length=26;
p[24]=(unsigned char) (length >> 8);
p[25]=(unsigned char) (length & 0xff);
draw_info->primitive=(char *) AcquireMagickMemory(GetBlobSize(image)+1);
if (draw_info->primitive != (char *) NULL)
{
- CopyMagickMemory(draw_info->primitive,GetBlobStreamData(image),
+ memcpy(draw_info->primitive,GetBlobStreamData(image),
GetBlobSize(image));
draw_info->primitive[GetBlobSize(image)]='\0';
}
one_row[i+bit]=last_row[i+bit];
}
}
- (void) CopyMagickMemory(last_row, one_row, bytes_per_row);
+ (void) memcpy(last_row, one_row, bytes_per_row);
}
}
ptr=one_row;
(void) WriteBlobByte(image, byte);
(void) WriteBlob(image,tptr-tmpbuf,(unsigned char *) tmpbuf);
}
- (void) CopyMagickMemory(last_row,one_row,bytes_per_row);
+ (void) memcpy(last_row,one_row,bytes_per_row);
}
else
(void) WriteBlob(image,bytes_per_row,one_row);
}
p=pixels+(2*height-2)*scaled_width;
q=pixels+(2*height-1)*scaled_width;
- (void) CopyMagickMemory(q,p,(size_t) (2*width));
+ (void) memcpy(q,p,(size_t) (2*width));
}
static Image *ReadPCDImage(const ImageInfo *image_info,ExceptionInfo *exception)
(double) packets);
(void) WriteBlobString(image,buffer);
(void) WriteBlob(image,packets,compress_pixels);
- (void) CopyMagickMemory(previous_pixels,pixels,length*
+ (void) memcpy(previous_pixels,pixels,length*
sizeof(*pixels));
break;
}
}
case 8:
{
- (void) CopyMagickMemory(r,p,image->columns);
+ (void) memcpy(r,p,image->columns);
break;
}
default:
{
if (literal > 0)
*destination++=(unsigned char) (literal-1);
- (void) CopyMagickMemory(destination,source,literal);
+ (void) memcpy(destination,source,literal);
destination+=literal;
if (repeat > 0)
{
pdb_info.modify_number=0;
pdb_info.application_info=0;
pdb_info.sort_info=0;
- (void) CopyMagickMemory(pdb_info.type,"vIMG",4);
- (void) CopyMagickMemory(pdb_info.id,"View",4);
+ (void) memcpy(pdb_info.type,"vIMG",4);
+ (void) memcpy(pdb_info.id,"View",4);
pdb_info.seed=0;
pdb_info.next_record=0;
comment=GetImageProperty(image,"comment",exception);
if (0x7f < literal)
{
q=EncodeRLE(q,buffer,(literal < 0x80 ? literal : 0x80),0);
- (void) CopyMagickMemory(buffer,buffer+literal+repeat,0x80);
+ (void) memmove(buffer,buffer+literal+repeat,0x80);
literal-=0x80;
}
}
image->filename);
break;
}
- (void) CopyMagickMemory(q,p,(size_t) number_pixels);
+ (void) memcpy(q,p,(size_t) number_pixels);
}
scanline=(unsigned char *) RelinquishMagickMemory(scanline);
return(pixels);
number_pixels=length*bytes_per_pixel;
p=ExpandBuffer(scanline+j+1,&number_pixels,bits_per_pixel);
if ((q-pixels+number_pixels) <= *extent)
- (void) CopyMagickMemory(q,p,(size_t) number_pixels);
+ (void) memcpy(q,p,(size_t) number_pixels);
q+=number_pixels;
j+=(ssize_t) (length*bytes_per_pixel+1);
}
for (i=0; i < (ssize_t) length; i++)
{
if ((q-pixels+number_pixels) <= *extent)
- (void) CopyMagickMemory(q,p,(size_t) number_pixels);
+ (void) memcpy(q,p,(size_t) number_pixels);
q+=number_pixels;
}
j+=(ssize_t) bytes_per_pixel+1;
static void PNGType(png_bytep p,const png_byte *type)
{
- (void) CopyMagickMemory(p,type,4*sizeof(png_byte));
+ (void) memcpy(p,type,4*sizeof(png_byte));
}
static void LogPNGChunk(MagickBooleanType logging, const png_byte *type,
}
n=GetAuthenticPixels(image,0,0,image->columns,1,exception);
- (void) CopyMagickMemory(next,n,length);
+ (void) memcpy(next,n,length);
for (y=0; y < (ssize_t) image->rows; y++)
{
{
n=GetAuthenticPixels(image,0,y+1,image->columns,1,
exception);
- (void) CopyMagickMemory(next,n,length);
+ (void) memcpy(next,n,length);
}
for (i=0; i < m; i++, yy++)
if ((quantum >= 12) && (quantum < (ssize_t) length))
{
if ((q+quantum < (datum+length-16)))
- (void) CopyMagickMemory(q,q+quantum,length-quantum-(q-datum));
+ (void) memmove(q,q+quantum,length-quantum-(q-datum));
SetStringInfoLength(bim_profile,length-quantum);
}
break;
if ((id == 0x000003ed) && (cnt < (ssize_t) (length-12)) &&
((ssize_t) length-(cnt+12)-(q-datum)) > 0)
{
- (void) CopyMagickMemory(q,q+cnt+12,length-(cnt+12)-(q-datum));
+ (void) memmove(q,q+cnt+12,length-(cnt+12)-(q-datum));
SetStringInfoLength(bim_profile,length-(cnt+12));
break;
}
if (found == MagickFalse)
{
if (remaining_length > 0)
- p=(unsigned char *) CopyMagickMemory(p-12,p+size,remaining_length);
+ p=(unsigned char *) memmove(p-12,p+size,remaining_length);
continue;
}
length+=(size_t) size+12;
}
TranslateSFWMarker(header); /* translate soi and app tags */
TranslateSFWMarker(header+2);
- (void) CopyMagickMemory(header+6,"JFIF\0\001\0",7); /* JFIF magic */
+ (void) memcpy(header+6,"JFIF\0\001\0",7); /* JFIF magic */
/*
Translate remaining markers.
*/
}
(void) memset(dmbuf, background_color_index, (size_t) dmsx * dmsy);
for (y = 0; y < imsy; ++y) {
- (void) CopyMagickMemory(dmbuf + dmsx * y, imbuf + imsx * y, imsx);
+ (void) memcpy(dmbuf + dmsx * y, imbuf + imsx * y, imsx);
}
imbuf = (unsigned char *) RelinquishMagickMemory(imbuf);
imsx = dmsx;
}
(void) memset(dmbuf, background_color_index, (size_t) dmsx * dmsy);
for (y = 0; y < imsy; ++y) {
- (void) CopyMagickMemory(dmbuf + dmsx * y, imbuf + imsx * y, imsx);
+ (void) memcpy(dmbuf + dmsx * y, imbuf + imsx * y, imsx);
}
imbuf = (unsigned char *) RelinquishMagickMemory(imbuf);
imsx = dmsx;
return (MagickFalse);
}
for (y = 0; y < dmsy; ++y) {
- (void) CopyMagickMemory(dmbuf + dmsx * y, imbuf + imsx * y, dmsx);
+ (void) memcpy(dmbuf + dmsx * y, imbuf + imsx * y, dmsx);
}
imbuf = (unsigned char *) RelinquishMagickMemory(imbuf);
imsx = dmsx;
{
if ((context->pos += nwrite) >= SIXEL_OUTPUT_PACKET_SIZE) {
WriteBlob(context->image,SIXEL_OUTPUT_PACKET_SIZE,context->buffer);
- CopyMagickMemory(context->buffer,
+ memcpy(context->buffer,
context->buffer + SIXEL_OUTPUT_PACKET_SIZE,
(context->pos -= SIXEL_OUTPUT_PACKET_SIZE));
}
sun_pixels=(unsigned char *) RelinquishMagickMemory(sun_pixels);
ThrowReaderException(ResourceLimitError,"ImproperImageHeader");
}
- (void) CopyMagickMemory(sun_pixels,sun_data,sun_info.length);
+ (void) memcpy(sun_pixels,sun_data,sun_info.length);
}
sun_data=(unsigned char *) RelinquishMagickMemory(sun_data);
/*
q=message+length-1;
while ((isspace((int) ((unsigned char) *q)) != 0) && (q > p))
q--;
- (void) CopyMagickMemory(message,p,(size_t) (q-p+1));
+ (void) memcpy(message,p,(size_t) (q-p+1));
message[q-p+1]='\0';
StripString(message);
}
Fill scanlines to tile height.
*/
i=(ssize_t) (row % tiff_info->tile_geometry.height)*TIFFScanlineSize(tiff);
- (void) CopyMagickMemory(tiff_info->scanlines+i,(char *) tiff_info->scanline,
+ (void) memcpy(tiff_info->scanlines+i,(char *) tiff_info->scanline,
(size_t) TIFFScanlineSize(tiff));
if (((size_t) (row % tiff_info->tile_geometry.height) !=
(tiff_info->tile_geometry.height-1)) &&