environment-modules/environment-modules-strcpy.patch
2011-09-22 12:50:58 -06:00

12 lines
465 B
Diff

--- modules-3.2.8/cmdPath.c.strcpy 2010-09-23 16:47:15.000000000 -0600
+++ modules-3.2.8/cmdPath.c 2011-09-22 12:46:55.893813323 -0600
@@ -797,7 +797,7 @@
** We must be in SW_STATE3 or not in SW_STATE at all.
** Removing the marker should be just like removing any other path.
**/
- strcpy( startp + start_offset, endp);
+ memmove( startp + start_offset, endp, strlen(endp)+1);
/**
** Cache the set. Clear the variable from the unset table just