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

Huang Shijie b32955 at freescale.com
Thu Nov 7 22:10:09 EST 2013


于 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].

thanks
Huang Shijie




More information about the linux-mtd mailing list