[gs-cvs] rev 7896 - trunk/gs/src

alexcher at ghostscript.com alexcher at ghostscript.com
Thu May 3 08:13:27 PDT 2007


Author: alexcher
Date: 2007-05-03 08:13:26 -0700 (Thu, 03 May 2007)
New Revision: 7896

Modified:
   trunk/gs/src/gxhintn.c
Log:
Avoid a Valgrind warning about ovelapping arguments in memcpy().
Don't assign a structure to itself.

DIFFERENCES:
None


Modified: trunk/gs/src/gxhintn.c
===================================================================
--- trunk/gs/src/gxhintn.c	2007-05-02 21:20:41 UTC (rev 7895)
+++ trunk/gs/src/gxhintn.c	2007-05-03 15:13:26 UTC (rev 7896)
@@ -1748,7 +1748,8 @@
 		    this->primary_hint_count--;
 		continue; /* skip it. */
 	    } else {
-		this->hint[j] = this->hint[i];
+		if (i != j)
+                    this->hint[j] = this->hint[i];
 		j++;
 	    }
 	this->hint_count = j;



More information about the gs-cvs mailing list