bug #37441: lockbits in ATxmega + avrdude = problem

* fileio.c: replace strmcp(..., "lock") by strncmp(..., "lock", 4)
where applicable



git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1338 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
joerg_wunsch
2014-10-15 20:01:12 +00:00
parent 4822833ce4
commit 7248d0ad5e
4 changed files with 15 additions and 7 deletions

View File

@@ -796,7 +796,7 @@ static int elf_mem_limits(AVRMEM *mem, struct avrpart * p,
*lowbound = 0x820000;
*highbound = 0x82ffff;
*fileoff = mem->desc[4] - '0';
} else if (strcmp(mem->desc, "lock") == 0) {
} else if (strncmp(mem->desc, "lock", 4) == 0) {
*lowbound = 0x830000;
*highbound = 0x83ffff;
*fileoff = 0;