mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-16 02:31:06 +00:00
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:
2
fileio.c
2
fileio.c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user