]> git.sur5r.net Git - u-boot/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)
commit94b233f443456a1cb868868b3b7f6876471a2de4
tree1126d88af19403179b7dc4ad73cc7b26fcca3e72
parent2aa686775b8facd71f9dce26ce00cf3c5abad51a
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