]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 6 Sep 2011 12:05:51 +0000 (12:05 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 6 Sep 2011 12:05:51 +0000 (12:05 +0000)
coders/jpeg.c

index 59cd5bacfb4089b0ef837c73ccad103da0987438..ce499c86ffbd8c5db6a558285f63b8cce77b8c99 100644 (file)
@@ -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));