From: cristy Date: Tue, 6 Sep 2011 12:05:51 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~7068 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83ab3d8885badddf1c32dfcd091af4b858c77e08;p=imagemagick --- diff --git a/coders/jpeg.c b/coders/jpeg.c index 59cd5bacf..ce499c86f 100644 --- a/coders/jpeg.c +++ b/coders/jpeg.c @@ -676,8 +676,9 @@ static boolean ReadProfile(j_decompress_ptr jpeg_info) length=GetStringInfoLength(profile); SetStringInfoLength(profile,GetStringInfoLength(profile)+ GetStringInfoLength(previous_profile)); - (void) memcpy(GetStringInfoDatum(profile),GetStringInfoDatum(profile)+ - GetStringInfoLength(previous_profile),length); + (void) memmove(GetStringInfoDatum(profile)+ + GetStringInfoLength(previous_profile),GetStringInfoDatum(profile), + length); (void) memcpy(GetStringInfoDatum(profile), GetStringInfoDatum(previous_profile), GetStringInfoLength(previous_profile));