[U-Boot] [PATCH] tools: env: Use getline rather than fgets when reading config/script

Lukasz Majewski lukma at denx.de
Thu Jun 7 12:26:17 UTC 2018


On Thu,  7 Jun 2018 12:20:05 +0000
Alex Kiernan <alex.kiernan at gmail.com> wrote:

> When reading the config file, or a script file, use getline rather
> than fgets so line lengths aren't limited by the size of a compiled
> in buffer (128 characters for config, 1024 for scripts).
> 
> Rename 'dump' to 'line' so it's clear we're working with a line of
> text.

Reviwed-by: Lukasz Majewski <lukma at denx.de>


Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180607/c3dfd109/attachment.sig>


More information about the U-Boot mailing list