This is the mail archive of the
cygwin-patches@sources.redhat.com
mailing list for the Cygwin project.
Re: a weird behavior on a command prompt.
- To: Chris Faylor <cgf at cygnus dot com>
- Subject: Re: a weird behavior on a command prompt.
- From: Kazuhiro Fujieda <fujieda at jaist dot ac dot jp>
- Date: 14 Sep 2000 04:15:35 +0900
- Cc: cygwin-patches at sources dot redhat dot com
- References: <s1s66o0jnd3.fsf@jaist.ac.jp> <20000913142841.C17331@cygnus.com>
>>> On Wed, 13 Sep 2000 14:28:41 -0400
>>> Chris Faylor <cgf@cygnus.com> said:
> If I'm reading your patch correctly, the only thing that really needed
> to be done was to
>
> return p;
>
> rather than
>
> return p + 1;
>
> That is the change that I've made.
I think this can cause the same problem.
For example...
At first:
"ls" --version
cmd^
After the first memmove():
ls" --version
cmd^
After the strchr():
ls" --version
p^
After the second memmove():
ls --version
p^
Return to build_argv():
ls --version
cmd^
____
| AIST Kazuhiro Fujieda <fujieda@jaist.ac.jp>
| HOKURIKU School of Information Science
o_/ 1990 Japan Advanced Institute of Science and Technology