bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bash 2.05 'unsigned char' cleanup


From: Paul Jarc
Subject: Re: Bash 2.05 'unsigned char' cleanup
Date: 07 May 2001 20:16:15 -0400
User-agent: Gnus/5.090001 (Oort Gnus v0.01) Emacs/20.7

Paul Eggert <eggert@twinsun.com> writes:
>   /* Find the name of the interpreter to exec. */
>   for (i = 2; whitespace (sample[i]) && i < sample_len; i++)
>     ;
...
> The simplest fix is to add one byte to 'sample' and to initialize it
> to zero, which is what my proposed patch does.  Once you do this, the
> code gets a bit simpler anyway.

It seems even simpler to just switch the operands of '&&'.  But that
wouldn't help with other uses of the buffer.


paul



reply via email to

[Prev in Thread] Current Thread [Next in Thread]