commit | 7a060a7b7c0f6f86fff5f80025086a0b2c608cc4 | [log] [tgz] |
---|---|---|
author | Wolfgang Denk <wd@denx.de> | Sat Jul 24 22:16:20 2010 +0200 |
committer | Wolfgang Denk <wd@denx.de> | Mon Aug 09 00:53:57 2010 +0200 |
tree | 26d69509babcff8af8f7316fbb8cbe4c04e84606 | |
parent | 7b5bf7720b15044bb6aa974accdf6ddb0debdc4f [diff] |
getenv_f(): fix handling of too short buffers Fix error handling in getenv_f() when the user provided buffer is too short to hold the variable name; make sure to truncate and NUL-terminate without overwriting the buffer limits. Signed-off-by: Wolfgang Denk <wd@denx.de>