bug #25971: "error writing to <stdout>" with multiple -U params.

* fileio.c: Do not close the input/output stream when working on an
stdio stream.



git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@816 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Joerg Wunsch 2009-03-22 21:28:46 +00:00
parent 5af383f5f5
commit 594e7e955c
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2009-03-22 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
bug #25971: "error writing to <stdout>" with multiple -U params.
* fileio.c: Do not close the input/output stream when working on an
stdio stream.
2009-02-28 Thomas Fischl <tfischl@gmx.de> 2009-02-28 Thomas Fischl <tfischl@gmx.de>
Based on patch #6484 commited by Jurgis Brigmanis: Based on patch #6484 commited by Jurgis Brigmanis:

View File

@ -1150,7 +1150,7 @@ int fileio(int op, char * filename, FILEFMT format,
rc = avr_mem_hiaddr(mem); rc = avr_mem_hiaddr(mem);
} }
} }
if (format != FMT_IMM) { if (format != FMT_IMM && !using_stdio) {
fclose(f); fclose(f);
} }
return rc; return rc;