diff options
author | Christopher Faylor <me@cgf.cx> | 2000-09-13 23:57:00 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-09-13 23:57:00 +0400 |
commit | 99d7d12af0bd6e08312a3c9c41b507d68d9c9662 (patch) | |
tree | 36f9100565e3ab82c694826daf202559900373ba /winsup/cygwin/dcrt0.cc | |
parent | 7f18fcb4cb412959bde4eba2718ee59cf4ad928f (diff) |
* 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
<fujieda@jaist.ac.jp>.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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 |