From df6e2eea127837f356349ddf59365ec42dcd0e54 Mon Sep 17 00:00:00 2001 From: MCUdude Date: Wed, 2 Mar 2022 20:09:59 +0100 Subject: [PATCH] Fix terminal write bug Wouldn't write data properly after an integer >= 2 bytes was written --- src/term.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/term.c b/src/term.c index 7051503a..281a1f70 100644 --- a/src/term.c +++ b/src/term.c @@ -410,7 +410,7 @@ static int cmd_write(PROGRAMMER * pgm, struct avrpart * p, }; } data = {.bytes_grown = 0, .size = 0, .is_float = false, .ll = 0, .is_signed = false}; - for (i = start_offset; i < len + start_offset - data.bytes_grown; i++) { + for (i = start_offset; i < len + start_offset; i++) { data.is_float = false; data.size = 0;