aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-09-25 13:53:46 +0000
committerChristopher Faylor <me@cgf.cx>2002-09-25 13:53:46 +0000
commit961973e7a4b8004fbd61a573c73a58ca57fe2084 (patch)
tree5fe23ecae3327d1c8a58e57cf9c8012560e2293b
parent38c77307c500a373ff96a80bbd0962282f51746f (diff)
downloadnewlib-961973e7a4b8004fbd61a573c73a58ca57fe2084.zip
newlib-961973e7a4b8004fbd61a573c73a58ca57fe2084.tar.gz
newlib-961973e7a4b8004fbd61a573c73a58ca57fe2084.tar.bz2
* cygrun.c (main): Fix setting of CYGWIN environment variable.
* Makefile.in: Remove linking of unnecessary libraries.
-rw-r--r--winsup/cygwin/ChangeLog6
-rw-r--r--winsup/cygwin/cygrun.c7
2 files changed, 11 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index ca3c6a0..e3d8786 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,9 @@
+2002-09-25 Christopher Faylor <cgf@redhat.com>
+
+ * cygrun.c (main): Fix setting of CYGWIN environment variable.
+
+ * Makefile.in: Remove linking of unnecessary libraries.
+
2002-09-24 Christopher January <chris@atomice.net>
* fhandler_proc.cc (format_process_stat): make ctty a real device
diff --git a/winsup/cygwin/cygrun.c b/winsup/cygwin/cygrun.c
index 94b0c39..63d9863 100644
--- a/winsup/cygwin/cygrun.c
+++ b/winsup/cygwin/cygrun.c
@@ -36,10 +36,13 @@ main (int argc, char **argv)
{
char buf[4096];
if (!p)
- p[0] = '\0';
+ {
+ p = buf;
+ p[0] = '\0';
+ }
else
{
- strcat (buf, p);
+ strcpy (buf, p);
strcat (buf, " ");
}
strcat(buf, "ntsec");