diff --git a/src/strutil.c b/src/strutil.c index 68234f328..be9108c5c 100644 --- a/src/strutil.c +++ b/src/strutil.c @@ -1553,7 +1553,7 @@ char *str_quote_bash(const char *s) { // Return the string in closed-circuit space so it can be used as shell argument const char *str_ccsharg(const char *str) { - const char *special="\"' $\\#[]<>|;{}()*?~&", *s; + const char *special="\"'` $\\#[]<>|;{}()*?~&!", *s; for(s = str; *s; s++) if(strchr(special, *s)) diff --git a/src/term.c b/src/term.c index 246db412c..b5a905b81 100644 --- a/src/term.c +++ b/src/term.c @@ -1997,6 +1997,7 @@ static int fusel_factory(const PROGRAMMER *pgm, const AVRPART *p, const AVRMEM * pmsg_warning("cannot update %s owing to unusual memory size %d\n", mem->desc, mem->size); return -1; } + // Read in memory as little endian for(int i = 0; i < mem->size; i++) { value[i] = mem->initval >> (8*i); @@ -2052,6 +2053,7 @@ static int cmd_factory(const PROGRAMMER *pgm, const AVRPART *p, int argc, const return ret; } + // Reset fuses to factory values for(LNODEID ln = lfirst(p->mem); ln; ln = lnext(ln)) if(!avr_mem_exclude(pgm, p, (m = ldata(ln))))