Closed fnetz closed 8 months ago
In strip_suffix, buf included the null-byte from the source, so *buf.last_mut()? = 0 set that instead of the last actual character.
strip_suffix
*buf.last_mut()? = 0
This caused setup_var.efi Setup(1):0x123 to fail with an error like "Unexpected value: 1)".
setup_var.efi Setup(1):0x123
With this fix, the checks from test_functions now pass (as far as I can tell)
test_functions
Thanks for the fix!
In
strip_suffix
, buf included the null-byte from the source, so*buf.last_mut()? = 0
set that instead of the last actual character.This caused
setup_var.efi Setup(1):0x123
to fail with an error like "Unexpected value: 1)".With this fix, the checks from
test_functions
now pass (as far as I can tell)