From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Date: Thu, 7 Jun 2018 14:26:17 +0200 Subject: [U-Boot] [PATCH] tools: env: Use getline rather than fgets when reading config/script In-Reply-To: <20180607122005.17506-1-alex.kiernan@gmail.com> References: <20180607122005.17506-1-alex.kiernan@gmail.com> Message-ID: <20180607142617.74a529ef@jawa> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, 7 Jun 2018 12:20:05 +0000 Alex Kiernan 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 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: