Mail Archives: cygwin/2008/08/18/10:12:26
On Mon, Aug 18, 2008 at 03:39:30PM +0200, Corinna Vinschen wrote:
>So it's the FreeLibrary call which triggers the problem. What I don't
>understand so far is, why it does.
Does this have any effect?
cgf
Index: cygcheck.cc
===================================================================
RCS file: /cvs/uberbaum/winsup/utils/cygcheck.cc,v
retrieving revision 1.103
diff -d -u -p -r1.103 cygcheck.cc
--- cygcheck.cc 17 Aug 2008 17:15:41 -0000 1.103
+++ cygcheck.cc 18 Aug 2008 14:11:15 -0000
@@ -2003,7 +2003,7 @@ void
nuke (char *ev)
{
int n = 1 + strchr (ev, '=') - ev;
- char *s = (char *) alloca (n + 1);
+ char *s = (char *) malloc (n + 1);
memcpy (s, ev, n);
s[n] = '\0';
putenv (s);
@@ -2051,7 +2051,7 @@ load_cygwin (int& argc, char **&argv)
}
for (char **ev = envp; *ev; ev++)
if (strncmp (*ev, "PATH=", 5) != 0)
- putenv (*ev);
+ putenv (strdup (*ev));
if (path)
putenv (path);
}
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -