ao-tools/ao-usbload: Pad image with 0xff instead of random bits
authorKeith Packard <keithp@keithp.com>
Fri, 6 Jan 2017 17:10:23 +0000 (09:10 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 20 Feb 2017 19:22:21 +0000 (11:22 -0800)
commitf0c187dd6479996b83f85b6decf303ec0fc70fe5
tree0ab879de409ff50d907bc6eab0878e56c0fe0b6a
parent61f729567ff6355ab52c3e83399761103022a41a
ao-tools/ao-usbload: Pad image with 0xff instead of random bits

Clear the temporary block to 0xff before copying in the target data so
that any unused bytes end up being left at 0xff instead of inheriting
whatever data was in the block before.

Signed-off-by: Keith Packard <keithp@keithp.com>
ao-tools/lib/ao-selfload.c