environment-modules/environment-modules-strcpy.patch

12 lines
465 B
Diff
Raw Normal View History

--- 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