boot: readline off by one

2014-01-11 Thread Tobias Stoeckmann
Hi, in boot, we have an off-by-one error in readline. When the user ends input with enter, the string will be ended twice, like: p[1] = *p = '\0'; Therefore we have to make sure that two bytes are still free, not just one. Not sure why it has to be handled like this, but the fix is easy to

Re: boot: readline off by one

2014-01-11 Thread Tobias Stoeckmann
On Sat, Jan 11, 2014 at 12:43:33PM +0100, Tobias Stoeckmann wrote: > p[1] = *p = '\0'; If this is actually intended behaviour, it's off from read_conf, which ends cmd_buf with just one terminating \0 character.