From 39a00bc71ed2527ad1953f1465df22f4961c6d5a Mon Sep 17 00:00:00 2001 From: Stefan Rueger <stefan.rueger@urclocks.com> Date: Tue, 12 Jul 2022 11:14:41 +0100 Subject: [PATCH] Ensure +0x...f does not strip suffix f in terminal write --- src/term.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/term.c b/src/term.c index 534cf67b..ce6c6157 100644 --- a/src/term.c +++ b/src/term.c @@ -447,7 +447,7 @@ static int cmd_write(PROGRAMMER * pgm, struct avrpart * p, argi[--arglen] = '\0'; data.size = 4; } else if ((suffix == 'F') && - strncmp(argi, "0x", 2) != 0 && strncmp(argi, "-0x", 3) != 0) { + strncmp(argi, "0x", 2) && strncmp(argi, "-0x", 3) && strncmp(argi, "+0x", 3)) { argi[--arglen] = '\0'; data.size = 4; } else if (suffix == 'H' && lsuffix == 'H') {