mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2026-11-17 10:35:41 +00:00
Ensure terminal write fill mode ... always fills with last data item
This commit is contained in:
1 parent
39a00bc71e
commit
d3ad078577
1 file changed
+3
-3
+3
-3
@@ -421,14 +421,14 @@ static int cmd_write(PROGRAMMER * pgm, struct avrpart * p,
|
||||
};
|
||||
|
||||
for (i = start_offset; i < len + start_offset; i++) {
|
||||
data.is_float = false;
|
||||
data.size = 0;
|
||||
|
||||
// Handle the next argument
|
||||
if (i < argc - start_offset + 3) {
|
||||
char *argi = argv[i];
|
||||
size_t arglen = strlen(argi);
|
||||
|
||||
data.is_float = false;
|
||||
data.size = 0;
|
||||
|
||||
// Free string pointer if already allocated
|
||||
if(data.str_ptr) {
|
||||
free(data.str_ptr);
|
||||
|
||||
Reference in new issue
Block a user