incorrect switch in CYGWIN variable

Vadim Egorov egorovv@1c.ru
Tue Dec 7 03:13:00 GMT 1999


Hello,
Incorrect switch in CYGWIN variable causes crash in strcasematch
in the last cygwin snapshot

I believe the following patch fixes this

--- environ.cc.orig	Tue Dec 07 12:07:38 1999
+++ environ.cc	Tue Dec 07 12:07:51 1999
@@ -375,7 +375,7 @@ parse_options (char *buf)
       else
 	ch = 0;
 
-      for (parse_thing *k = known; k != NULL; k++)
+      for (parse_thing *k = known; k->name != NULL; k++)
 	if (strcasematch (p, k->name))
 	  {
 	    switch (k->disposition)



-- 
Regards,
Vadim Egorov 



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list