Mail Archives: cygwin-developers/1998/02/14/21:49:14
I'm not sure how I missed this in my implementation of CYGWIN32 but
multiple space separated options are not handled correctly. Only the first
one is preserved.
* environ.cc (parse_options): Preserve CYGWIN32 environment variable
from strtok or risk truncation.
diff -c2pP -r --exclude-from X cygnus-980213/environ.cc winsup/environ.cc
*** cygnus-980213/environ.cc Tue Feb 10 22:14:51 1998
--- winsup/environ.cc Sun Feb 15 00:40:37 1998
*************** parse_options (char *buf)
*** 252,255 ****
--- 252,256 ----
}
+ buf = strcpy ((char *)alloca (strlen (buf) + 1), buf);
for (p = strtok (buf, " \t"); p != NULL; p = strtok (NULL, " \t"))
{
--
http://www.bbc.com/ cgf AT bbc DOT com "Strange how unreal
VMS=>UNIX Solutions Boston Business Computing the real can be."
- Raw text -