From 99d7d12af0bd6e08312a3c9c41b507d68d9c9662 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 13 Sep 2000 19:57:00 +0000 Subject: * spawn.cc (av): Hide 'calloced' field and limit cstrduping to class methods only. (spawn_guts): Use methods for manipulating most newargv stuff. * child_info.h (child_info_spawn::~child_info_spawn): Avoid memory leaks in cygheap. * spawn.cc (spawn_guts): Ditto. * dcrt0.cc (quoted): Return next character after a quoted string when not doing special quote processing. Also ensure that non-NULL is returned in all circumstances. * spawn.cc (spawn_guts): Ensure that argv[0] is correctly set to the full path when a script is detected. Suggested by Kazuhiro Fujieda . --- winsup/cygwin/dcrt0.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/dcrt0.cc') diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index ac67eb807..9d3db236e 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -307,7 +307,7 @@ quoted (char *cmd, int winshell) strcpy (cmd, cmd + 1); if ((p = strchr (cmd, quote)) != NULL) strcpy (p, p + 1); - return p + 1; + return p; } /* This must have been run from a Windows shell, so preserve -- cgit v1.2.3