[gs-cvs] gs/src

Alex Cherepanov alexcher at ghostscript.com
Thu Jul 21 12:50:42 PDT 2005


Update of /cvs/ghostscript/gs/src
In directory casper2:/tmp/cvs-serv3380/gs/src

Modified Files:
	ttinterp.c 
Log Message:
Use memmove() instead of memcpy() in Ins_MINDEX() because of the overlapping
memory blocks.
Fix bug 688224.


Index: ttinterp.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/ttinterp.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- ttinterp.c	7 Nov 2004 19:25:07 -0000	1.16
+++ ttinterp.c	21 Jul 2005 19:50:40 -0000	1.17
@@ -1693,7 +1693,7 @@
 
     K = CUR.stack[CUR.args - L];
 
-    memcpy( (&CUR.stack[CUR.args - L    ]),
+    memmove( (&CUR.stack[CUR.args - L    ]),
               (&CUR.stack[CUR.args - L + 1]),
               (L - 1) * sizeof ( Long ) );
 



More information about the gs-cvs mailing list