From 83ab3d8885badddf1c32dfcd091af4b858c77e08 Mon Sep 17 00:00:00 2001 From: cristy Date: Tue, 6 Sep 2011 12:05:51 +0000 Subject: [PATCH] --- coders/jpeg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)); -- 2.40.0