Ensure +0x...f does not strip suffix f in terminal write

This commit is contained in:
Stefan Rueger 2022-07-12 11:14:41 +01:00
parent 360d7c502b
commit 39a00bc71e
1 changed files with 1 additions and 1 deletions

View File

@ -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') {