]> git.baikalelectronics.ru Git - uboot.git/commit
tools: env: Use getline rather than fgets when reading config/script
authorAlex Kiernan <alex.kiernan@gmail.com>
Thu, 7 Jun 2018 12:20:05 +0000 (12:20 +0000)
committerTom Rini <trini@konsulko.com>
Wed, 13 Jun 2018 11:49:12 +0000 (07:49 -0400)
commite20c7d1eb1e42995f1526f7fb493c5afe4588a13
tree1126d88af19403179b7dc4ad73cc7b26fcca3e72
parenta7c011a6dd62dfca30969db5c842e2a992be3aa4
tools: env: Use getline rather than fgets when reading config/script

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.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
tools/env/fw_env.c