[PATCH 1/2] mtd: gpmi: fix the NULL pointer

Fabio Estevam festevam at gmail.com
Fri Nov 8 07:49:35 EST 2013


On Fri, Nov 8, 2013 at 1:10 AM, Huang Shijie <b32955 at freescale.com> wrote:
> 于 2013年11月07日 21:07, Fabio Estevam 写道:
>
>> Why buffer[FINGERPRINT_LEN + 1] instead of buffer[FINGERPRINT_LEN] ?
>
> just for the safe guard. "+1" is to simulate the terminal '\0' of the
> string.
> Of course, it's ok to use the buffer[FINGERPINGT_LEN].

Then please send a v2 without the +1. Let's save one byte ;-)

Regards,

Fabio Estevam



More information about the linux-mtd mailing list