From 4f3570c470e7df13c7bd9d4bd7a720922d97e9c5 Mon Sep 17 00:00:00 2001 From: Sebastian Hesselbarth Date: Tue, 12 Nov 2013 21:58:03 +0100 Subject: [PATCH] scripts: kwboot: fix missing soh initialization Xmodem blocks should start with SOH but kwboot never sets the first block byte. This fixes kwboot's Xmodem block initialization and sets first block byte to SOH. Signed-off-by: Sebastian Hesselbarth Signed-off-by: Sascha Hauer --- scripts/kwboot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/kwboot.c b/scripts/kwboot.c index 33c94b3a8..81da3e81b 100644 --- a/scripts/kwboot.c +++ b/scripts/kwboot.c @@ -334,6 +334,7 @@ kwboot_xm_makeblock(struct kwboot_block *block, const void *data, size_t n; int i; + block->soh = SOH; block->pnum = pnum; block->_pnum = ~block->pnum;