This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

incorrect switch in CYGWIN variable


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]