www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/02/14/21:49:14

From: cgf AT bbc DOT com (Christopher Faylor)
Subject: CYGWIN32 problem
14 Feb 1998 21:49:14 -0800 :
Message-ID: <EoEo3x.829.cygnus.cygwin32.developers@bbc.com>
Reply-To: cygwin32-developers AT cygnus DOT com
To: cygwin32-developers AT cygnus DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019