[U-Boot] [PATCH 1/2] ubifs: BUG realpath string must be ended with ZERO

Mike Frysinger vapier at gentoo.org
Mon Apr 27 08:58:43 CEST 2009


On Friday 24 April 2009 10:36:05 Ricardo Ribalda Delgado wrote:
> If the memory used to copy the link_make is "dirty" the string wont
> be ended with Zero, throwing out multiple memory bugs.

use "NULL" or "NUL", not "Zero".  same goes for subject.

> +		link_name[ui->data_len]='\0';

need spaces around the equal sign.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090427/5cd89ccd/attachment.pgp 


More information about the U-Boot mailing list