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