mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-23 01:26:19 +03:00
Fix error in -U parsing
This commit is contained in:
@@ -81,7 +81,7 @@ UPDATE *parse_op(char *s) {
|
||||
upd->op =
|
||||
fc[1]=='r'? DEVICE_READ:
|
||||
fc[1]=='w'? DEVICE_WRITE: DEVICE_VERIFY;
|
||||
fn = fc+2;
|
||||
fn = fc+3;
|
||||
}
|
||||
|
||||
// Default to AUTO for write and verify, and to raw binary for read
|
||||
@@ -106,7 +106,7 @@ UPDATE *parse_op(char *s) {
|
||||
len -= 2;
|
||||
}
|
||||
|
||||
upd->filename = memcpy(cfg_malloc(__func__, len +1), fn, len);
|
||||
upd->filename = memcpy(cfg_malloc(__func__, len+1), fn, len);
|
||||
|
||||
return upd;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user