mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-27 22:45:27 +00:00
Fix for bug #3293. Set correct open mode for raw format for Windows.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@321 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2003-04-23 Eric B. Weddington <eric@umginc.net>
|
||||||
|
|
||||||
|
* fileio.c: Fix for bug #3293. Set correct open mode for raw format
|
||||||
|
for Windows.
|
||||||
|
|
||||||
2003-04-18 Theodore A. Roth <troth@openavr.org>
|
2003-04-18 Theodore A. Roth <troth@openavr.org>
|
||||||
|
|
||||||
* configure.ac: Add cvs suffix back to version.
|
* configure.ac: Add cvs suffix back to version.
|
||||||
|
15
fileio.c
15
fileio.c
@@ -950,6 +950,21 @@ int fileio(int op, char * filename, FILEFMT format,
|
|||||||
if (rc < 0)
|
if (rc < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
#if defined(__CYGWIN__)
|
||||||
|
/* Open Raw Binary format in binary mode on Windows.*/
|
||||||
|
if(format == FMT_RBIN)
|
||||||
|
{
|
||||||
|
if(fio.op == FIO_READ)
|
||||||
|
{
|
||||||
|
fio.mode = "rb";
|
||||||
|
}
|
||||||
|
if(fio.op == FIO_WRITE)
|
||||||
|
{
|
||||||
|
fio.mode = "wb";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* point at the requested memory buffer */
|
/* point at the requested memory buffer */
|
||||||
buf = mem->buf;
|
buf = mem->buf;
|
||||||
if (fio.op == FIO_READ)
|
if (fio.op == FIO_READ)
|
||||||
|
Reference in New Issue
Block a user