libpayload/option table: Don't pad string entries with garbage
commit5c76ed66b8ccbcf9bd6f868d0635a0c60d7c10e6
authorNico Huber <nico.huber@secunet.com>
Wed, 30 Jan 2019 13:29:42 +0000 (30 14:29 +0100)
committerPatrick Georgi <pgeorgi@google.com>
Thu, 11 Apr 2019 12:03:07 +0000 (11 12:03 +0000)
treec8ab4e80a5bc8b1a7a29de2ebc70b97817241d53
parent8110f46fcc9c0519f63b7357a2762467c4b0e99c
libpayload/option table: Don't pad string entries with garbage

set_option_with() expects a buffer of the exact size of the option.

Change-Id: I21332394f88cf2daa4f733a544627d6d3c6ef26c
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/31348
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
payloads/libpayload/drivers/options.c