Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-09-25 17:53:46 +0400
committerChristopher Faylor <me@cgf.cx>2002-09-25 17:53:46 +0400
commit961973e7a4b8004fbd61a573c73a58ca57fe2084 (patch)
tree5fe23ecae3327d1c8a58e57cf9c8012560e2293b
parent38c77307c500a373ff96a80bbd0962282f51746f (diff)
* 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 ca3c6a083..e3d8786cb 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 94b0c399f..63d9863f7 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");