[Debburn-changes] r846 - in cdrkit/trunk: . genisoimage

Steve McIntyre 93sam at alioth.debian.org
Tue Jul 13 12:21:34 UTC 2010


Author: 93sam
Date: 2010-07-13 12:21:21 +0000 (Tue, 13 Jul 2010)
New Revision: 846

Modified:
   cdrkit/trunk/Changelog
   cdrkit/trunk/genisoimage/genisoimage.c
Log:
Patch from Mike Paul
* genisoimage: Use memmove() instead of strcpy() when cleaning
  up graft points.



Modified: cdrkit/trunk/Changelog
===================================================================
--- cdrkit/trunk/Changelog	2010-04-22 23:37:32 UTC (rev 845)
+++ cdrkit/trunk/Changelog	2010-07-13 12:21:21 UTC (rev 846)
@@ -3,6 +3,10 @@
   [ Steve McIntyre ]
   * genisoimage: Fix silly bug in MD5 output in template files.
 
+  [ Mike Paul ]
+  * genisoimage: Use memmove() instead of strcpy() when cleaning
+    up graft points.
+
  -- Steve McIntyre <93sam at debian.org>  Fri, 23 Apr 2010 00:30:18 +0100
 
 cdrkit (1.1.10) RELEASED; urgency=low

Modified: cdrkit/trunk/genisoimage/genisoimage.c
===================================================================
--- cdrkit/trunk/genisoimage/genisoimage.c	2010-04-22 23:37:32 UTC (rev 845)
+++ cdrkit/trunk/genisoimage/genisoimage.c	2010-07-13 12:21:21 UTC (rev 846)
@@ -3166,7 +3166,7 @@
 				while (*xpnt == PATH_SEPARATOR) {
 					xpnt++;
 				}
-				strcpy(graft_point, xpnt);
+				memmove(graft_point, xpnt, strlen(xpnt)+1);
 			} while (xpnt > graft_point);
 
 			if (node) {




More information about the Debburn-changes mailing list