This is the mail archive of the cygwin-patches@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: a weird behavior on a command prompt.


>>> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]