d8013732edContributed by Shaun Jackman <sjackman@gmail.com> bug #21798: Fix both XSLT scripts * tools/get-dw-params.xsl (format-hex): Add the parameter count. * tools/get-hv-params.xsl (format_cstack): Ditto.
Joerg Wunsch
2009-07-02 10:49:19 +00:00
bd016dc27abug #21922: ATmega163 still not working in version 5.5 * avrdude.conf.in (atmega163): fill in stk500v2 parameters, correct some flash programming parameters as well.
Joerg Wunsch
2009-07-02 10:45:53 +00:00
9330d9000ebug #21922: ATmega163 still not working in version 5.5 * avrdude.conf.in (atmega163): fill in stk500v2 parameters, correct some flash programming parameters as well.
Joerg Wunsch
2009-07-02 10:45:53 +00:00
9ea7cd755fbug #22206: avrdude: ser_setspeed(): tcsetattr() failed * ser_posix.c (ser_setspeed): Don't pass TCSAFLUSH to tcsetattr() as it apparently fails to work on Solaris. After reading the documentation again, it seems TCSAFLUSH and TCSANOW are indeed mutually exclusive.
Joerg Wunsch
2009-07-02 10:31:13 +00:00
85ab99b2eabug #22206: avrdude: ser_setspeed(): tcsetattr() failed * ser_posix.c (ser_setspeed): Don't pass TCSAFLUSH to tcsetattr() as it apparently fails to work on Solaris. After reading the documentation again, it seems TCSAFLUSH and TCSANOW are indeed mutually exclusive.
Joerg Wunsch
2009-07-02 10:31:13 +00:00
922d1e5465bug #22234: WINDOWS version: HOWTO: Specify Serial Ports Larger than COM9 * ser_win32.c (ser_open): prepend \\.\ to any COM port name, so it is safe to be used for COM ports above 9.
Joerg Wunsch
2009-07-02 10:23:57 +00:00
6fdd7e2ad0bug #22234: WINDOWS version: HOWTO: Specify Serial Ports Larger than COM9 * ser_win32.c (ser_open): prepend \\.\ to any COM port name, so it is safe to be used for COM ports above 9.
Joerg Wunsch
2009-07-02 10:23:57 +00:00
38d792793cbug #26408: Crash in stk500v2_open() * stk500generic.c: Implement setup and teardown hooks, calling in turn the respective hooks of the stk500v2 implementation.
Joerg Wunsch
2009-07-02 09:11:45 +00:00
f663500996bug #26408: Crash in stk500v2_open() * stk500generic.c: Implement setup and teardown hooks, calling in turn the respective hooks of the stk500v2 implementation.
Joerg Wunsch
2009-07-02 09:11:45 +00:00
12b0c0d17dbug #26130: Avrdude doesn't display it's version. * main.c (usage): add a version number display to the default usage message.
Joerg Wunsch
2009-07-02 08:42:14 +00:00
a17e93fc2dbug #26130: Avrdude doesn't display it's version. * main.c (usage): add a version number display to the default usage message.
Joerg Wunsch
2009-07-02 08:42:14 +00:00
d03edbf5ffbug #26412: avrdude segfaults when called with a programmer that does not support it
Joerg Wunsch
2009-07-01 16:08:49 +00:00
141a19049abug #26412: avrdude segfaults when called with a programmer that does not support it
Joerg Wunsch
2009-07-01 16:08:49 +00:00
a5f42858eaContributed by Zoltan Laday: patch #6825: xmega problems with JTAGICEmkII * jtagmkII.c: Many fixes for Xmega devices. * jtagmkII_private.h: Add various new constants required for Xmega devices. * avrdude.conf.in: New devices: ATXMEGA64A1, ATXMEGA192A1, ATXMEGA256A1, ATXMEGA64A3, ATXMEGA128A3, ATXMEGA192A3, ATXMEGA256A3, ATXMEGA256A3B, ATXMEGA16A4, ATXMEGA32A4, ATXMEGA64A4, ATXMEGA128A4 * avr.c (avr_read, avr_write): Add more names for (Xmega) memory areas that require paged operation.
Joerg Wunsch
2009-06-24 21:32:12 +00:00
9161daeaa1Contributed by Zoltan Laday: patch #6825: xmega problems with JTAGICEmkII * jtagmkII.c: Many fixes for Xmega devices. * jtagmkII_private.h: Add various new constants required for Xmega devices. * avrdude.conf.in: New devices: ATXMEGA64A1, ATXMEGA192A1, ATXMEGA256A1, ATXMEGA64A3, ATXMEGA128A3, ATXMEGA192A3, ATXMEGA256A3, ATXMEGA256A3B, ATXMEGA16A4, ATXMEGA32A4, ATXMEGA64A4, ATXMEGA128A4 * avr.c (avr_read, avr_write): Add more names for (Xmega) memory areas that require paged operation.
Joerg Wunsch
2009-06-24 21:32:12 +00:00
9c1f1f921bHandle writing fuse bytes (on the Xmega).
Joerg Wunsch
2009-06-24 21:18:36 +00:00
91f6cc9ac2Handle writing fuse bytes (on the Xmega).
Joerg Wunsch
2009-06-24 21:18:36 +00:00
d1721b185dSubmitted by Carl Hamilton: * update.c (parse_op): correctly \0-terminate buf after filling it, before it is potentially used as the source of a call to strlen or strcpy.
Joerg Wunsch
2009-04-28 18:35:14 +00:00
1c55f53261Submitted by Carl Hamilton: * update.c (parse_op): correctly \0-terminate buf after filling it, before it is potentially used as the source of a call to strlen or strcpy.
Joerg Wunsch
2009-04-28 18:35:14 +00:00
75cbd3fa2bMerge the -P 0xXXX option description from avrdude.1.
Joerg Wunsch
2009-04-14 18:54:20 +00:00
5290713bb9Merge the -P 0xXXX option description from avrdude.1.
Joerg Wunsch
2009-04-14 18:54:20 +00:00
26c2d0df73declare AM_PROG_CC_C_O to avoid the warning "compiling config_gram.c' with per-target flags requires AM_PROG_CC_C_O' in `configure.ac'"
Joerg Wunsch
2009-04-14 18:51:26 +00:00
09df6aa664declare AM_PROG_CC_C_O to avoid the warning "compiling config_gram.c' with per-target flags requires AM_PROG_CC_C_O' in `configure.ac'"
Joerg Wunsch
2009-04-14 18:51:26 +00:00
594e7e955cbug #25971: "error writing to <stdout>" with multiple -U params. * fileio.c: Do not close the input/output stream when working on an stdio stream.
Joerg Wunsch
2009-03-22 21:28:46 +00:00
4f075ae3b3bug #25971: "error writing to <stdout>" with multiple -U params. * fileio.c: Do not close the input/output stream when working on an stdio stream.
Joerg Wunsch
2009-03-22 21:28:46 +00:00
5af383f5f5Based on patch #6484 commited by Jurgis Brigmanis: * usbasp.c: added software control for ISP speed * usbasp.h: (Ditto.)
Thomas Fischl
2009-02-28 13:10:47 +00:00
90943bf2bbBased on patch #6484 commited by Jurgis Brigmanis: * usbasp.c: added software control for ISP speed * usbasp.h: (Ditto.)
Thomas Fischl
2009-02-28 13:10:47 +00:00
c2bda1f468* avr910.c (avr910_read_byte_flash): Eliminate a static variable that hasn't been in use for 5 years.
Joerg Wunsch
2009-02-28 10:07:01 +00:00
e293f2b5a2* avr910.c (avr910_read_byte_flash): Eliminate a static variable that hasn't been in use for 5 years.
Joerg Wunsch
2009-02-28 10:07:01 +00:00
11834b9ebfAVRDUDE 5.6 is history now.
Joerg Wunsch
2009-02-27 10:34:24 +00:00
acf6f3060bAVRDUDE 5.6 is history now.
Joerg Wunsch
2009-02-27 10:34:24 +00:00
7e4168e0d0This commit was manufactured by cvs2svn to create tag 'RELEASE_5_6_0'.
v5.6.0
Joerg Wunsch
2009-02-27 10:31:34 +00:00
0d3992906aPrepare for releasing version 5.6.
Joerg Wunsch
2009-02-27 10:31:33 +00:00
795b5ded83Prepare for releasing version 5.6.
Joerg Wunsch
2009-02-27 10:31:33 +00:00
3d87270ef2Submitted by Ed Okerson: * jtagmkII.c (jtagmkII_read_byte): Fix signature reading of Xmega.
Joerg Wunsch
2009-02-27 08:29:30 +00:00
a21d1f3cebSubmitted by Ed Okerson: * jtagmkII.c (jtagmkII_read_byte): Fix signature reading of Xmega.
Joerg Wunsch
2009-02-27 08:29:30 +00:00
94fb9d11f2Submitted by Mikael Hermansson: * avrdude.conf.in (ATxmega256A3): new device. * stk500v2 (stk500v2_initialize): Enable the AVRISPmkII as a PDI-capable device for ATxmega parts.
Joerg Wunsch
2009-02-26 19:43:55 +00:00
c5ec274a19Submitted by Mikael Hermansson: * avrdude.conf.in (ATxmega256A3): new device. * stk500v2 (stk500v2_initialize): Enable the AVRISPmkII as a PDI-capable device for ATxmega parts.
Joerg Wunsch
2009-02-26 19:43:55 +00:00
fac7ca2722Submitted by Lars Immisch: patch #6750: Arduino support - new programmer-id * arduino.c: New file, inherits stk500.c. * arduino.h: New file. * Makefile.am: Add arduino.c and arduino.h. * config_gram.y: Add arduino keyword. * lexer.l: (Ditto.) * avrdude.conf.in: (Ditto.) * avrdude.1: Document the new programmer type. * doc/avrdude.texi: (Ditto.)
Joerg Wunsch
2009-02-25 09:39:04 +00:00
a824d108c6Submitted by Lars Immisch: patch #6750: Arduino support - new programmer-id * arduino.c: New file, inherits stk500.c. * arduino.h: New file. * Makefile.am: Add arduino.c and arduino.h. * config_gram.y: Add arduino keyword. * lexer.l: (Ditto.) * avrdude.conf.in: (Ditto.) * avrdude.1: Document the new programmer type. * doc/avrdude.texi: (Ditto.)
Joerg Wunsch
2009-02-25 09:39:04 +00:00
192c022057Turn all non-const static data into instance data.
Joerg Wunsch
2009-02-25 09:20:38 +00:00
a76d845880Turn all non-const static data into instance data.
Joerg Wunsch
2009-02-25 09:20:38 +00:00
94af56058bMove term.[ch] from the library into the CLI application section, as it is not useful for anything else but the CLI frontend.
Joerg Wunsch
2009-02-25 08:00:14 +00:00
27072552faMove term.[ch] from the library into the CLI application section, as it is not useful for anything else but the CLI frontend.
Joerg Wunsch
2009-02-25 08:00:14 +00:00
d4483d5bf4Add support for the ATmega1284P.
Joerg Wunsch
2009-02-25 07:51:04 +00:00
d32338b5baAdd support for the ATmega1284P.
Joerg Wunsch
2009-02-25 07:51:04 +00:00
8b35dc3620More fixes for Solaris, including fixes for the Sunpro compiler: * avr.h: Remove stray semicolon. * configure.ac: Add check for predefined types uint_t and ulong_t. * confwin.c: Include "avrdude.h" on top to avoid empty translation unit warning. * ppwin.c: (Ditto.) * ser_win32.c: (Ditto.) * serbb_win32.c: (Ditto.) * jtagmkII.c (jtagmkII_recv): remove unreachable "return". * stk500.c (stk500_initialize): (Ditto.) * par.c: Test for both, __sun__ and __sun to see whether we are being compiled on Solaris. * ppi.c: (Ditto.) * stk500v2.c: Implement the DEBUG and DEBUGRECV macros in a way that is compatible with the ISO C99 standard. * usbtiny.c: Only typedef uint_t and ulong_t if they have not been found already by the autoconf checks.
Joerg Wunsch
2009-02-23 22:04:57 +00:00
efc97346a2More fixes for Solaris, including fixes for the Sunpro compiler: * avr.h: Remove stray semicolon. * configure.ac: Add check for predefined types uint_t and ulong_t. * confwin.c: Include "avrdude.h" on top to avoid empty translation unit warning. * ppwin.c: (Ditto.) * ser_win32.c: (Ditto.) * serbb_win32.c: (Ditto.) * jtagmkII.c (jtagmkII_recv): remove unreachable "return". * stk500.c (stk500_initialize): (Ditto.) * par.c: Test for both, __sun__ and __sun to see whether we are being compiled on Solaris. * ppi.c: (Ditto.) * stk500v2.c: Implement the DEBUG and DEBUGRECV macros in a way that is compatible with the ISO C99 standard. * usbtiny.c: Only typedef uint_t and ulong_t if they have not been found already by the autoconf checks.
Joerg Wunsch
2009-02-23 22:04:57 +00:00
8c2fa9933cbug #22204: Solaris10/11 Undefiniertes Symbol gethostbyname socket connect * configure.ac: Add checks for gethostent() and socket(). While being here, remove some old cruft left from ancient days.
Joerg Wunsch
2009-02-23 21:36:04 +00:00
71262c2d44bug #22204: Solaris10/11 Undefiniertes Symbol gethostbyname socket connect * configure.ac: Add checks for gethostent() and socket(). While being here, remove some old cruft left from ancient days.
Joerg Wunsch
2009-02-23 21:36:04 +00:00
3761a5e744Bump the %p size so AT&T lex will continue to work.
Joerg Wunsch
2009-02-22 21:36:24 +00:00
1d41442054Bump the %p size so AT&T lex will continue to work.
Joerg Wunsch
2009-02-22 21:36:24 +00:00
1a3155dd75(Partially) submitted by John Voltz: bug #20004: AVRDUDE update (-U) operations do not close files * fileio.c (fmt_autodetect, fileio): fclose() files.
Joerg Wunsch
2009-02-19 10:49:55 +00:00
822d9bc3f2(Partially) submitted by John Voltz: bug #20004: AVRDUDE update (-U) operations do not close files * fileio.c (fmt_autodetect, fileio): fclose() files.
Joerg Wunsch
2009-02-19 10:49:55 +00:00
0c29ebc694Replace all but one (very unlikely to trigger) exit(1) by return -1. exit(1) from a library function is not going to make many friends upstream (in particular the day someone uses that as part of a GUI frontend).
Joerg Wunsch
2009-02-18 20:20:56 +00:00
9c9c479e37Replace all but one (very unlikely to trigger) exit(1) by return -1. exit(1) from a library function is not going to make many friends upstream (in particular the day someone uses that as part of a GUI frontend).
Joerg Wunsch
2009-02-18 20:20:56 +00:00
92b50e0e12Submitted by Dick Streefland: patch #6749: make reading from the USBtinyISP programmer more robust
Joerg Wunsch
2009-02-18 20:10:32 +00:00
d1c90c4ce2Submitted by Dick Streefland: patch #6749: make reading from the USBtinyISP programmer more robust
Joerg Wunsch
2009-02-18 20:10:32 +00:00
27223edf7fSubmitted by Nick Hibma: bug #22271: usb_reset in usb_libusb.c not necessary in FreeBSD 6.x * usb_libusb.c (usbdev_close): Do not call usb_reset() on FreeBSD. It is not necessary there.
Joerg Wunsch
2009-02-17 17:09:53 +00:00
f7e7ac43beSubmitted by Nick Hibma: bug #22271: usb_reset in usb_libusb.c not necessary in FreeBSD 6.x * usb_libusb.c (usbdev_close): Do not call usb_reset() on FreeBSD. It is not necessary there.
Joerg Wunsch
2009-02-17 17:09:53 +00:00
5f149728b9Submitted by Andrew O. Shadoura: bug #25156: add direct SPI transfer mode * bitbang.c: Implement direct SPI transfers. * bitbang.h: (Ditto.) * par.c: (Ditto.) * pgm.c: (Ditto.) * pgm.h: (Ditto.) * term.c: Add the "spi" and "pgm" commands. * avrdude.1: Document the changes. * doc/avrdude.texi: (Ditto.)
Joerg Wunsch
2009-02-17 15:31:27 +00:00
98aa7dbb5aSubmitted by Andrew O. Shadoura: bug #25156: add direct SPI transfer mode * bitbang.c: Implement direct SPI transfers. * bitbang.h: (Ditto.) * par.c: (Ditto.) * pgm.c: (Ditto.) * pgm.h: (Ditto.) * term.c: Add the "spi" and "pgm" commands. * avrdude.1: Document the changes. * doc/avrdude.texi: (Ditto.)
Joerg Wunsch
2009-02-17 15:31:27 +00:00
c28d976be9Submitted by Limor ("Lady Ada"): bug #24749: add support for '328p * avrdude.conf.in (ATmega328P): new device support.
Joerg Wunsch
2009-02-17 14:17:53 +00:00
39ac828213Submitted by Limor ("Lady Ada"): bug #24749: add support for '328p * avrdude.conf.in (ATmega328P): new device support.
Joerg Wunsch
2009-02-17 14:17:53 +00:00
fa987e9de4Submitted by "Womo": bug #25241: AT90USB162, AT90USB82 device support patch for avrdude-5.5 (also: bug #21745: AT90USBxx2 support) * avrdude.conf.in (AT90USB162, AT90USB82): new device support.
Joerg Wunsch
2009-02-17 13:45:07 +00:00
f913088cdbSubmitted by "Womo": bug #25241: AT90USB162, AT90USB82 device support patch for avrdude-5.5 (also: bug #21745: AT90USBxx2 support) * avrdude.conf.in (AT90USB162, AT90USB82): new device support.
Joerg Wunsch
2009-02-17 13:45:07 +00:00
ca527d1832Submitted by Evangelos Arkalis: patch #6069: Atmel AT89ISP Cable * avrdude.conf.in (89isp): new programmer support.
Joerg Wunsch
2009-02-17 12:43:05 +00:00
9fdeb5444dSubmitted by Evangelos Arkalis: patch #6069: Atmel AT89ISP Cable * avrdude.conf.in (89isp): new programmer support.
Joerg Wunsch
2009-02-17 12:43:05 +00:00
d212b7432dSubmitted by Bob Paddock: patch #6748: ATTiny88 Config * avrdude.conf.in (ATtiny88): new device support.
Joerg Wunsch
2009-02-16 13:28:55 +00:00
47660adc4bSubmitted by Bob Paddock: patch #6748: ATTiny88 Config * avrdude.conf.in (ATtiny88): new device support.
Joerg Wunsch
2009-02-16 13:28:55 +00:00
5eea41bfceSubmitted by Mark Litwack: patch #6261: avrdude won't use dragon/debugwire to write a file to eeprom * jtagmkII.c (jtagmkII_paged_write): when in debugWire mode, implement a paged write to EEPROM as a series of byte writes.
Joerg Wunsch
2009-02-16 12:26:44 +00:00
03d6bcda04Submitted by Mark Litwack: patch #6261: avrdude won't use dragon/debugwire to write a file to eeprom * jtagmkII.c (jtagmkII_paged_write): when in debugWire mode, implement a paged write to EEPROM as a series of byte writes.
Joerg Wunsch
2009-02-16 12:26:44 +00:00
ae566048c3Submitted by Janos Sallai: patch #6542: paged_load fails on the MIB510 programming board * stk500.c: Add a workaround for the different signon sequence on MIB510 programmers.
Joerg Wunsch
2009-02-16 10:19:46 +00:00
f1411fca7eSubmitted by Janos Sallai: patch #6542: paged_load fails on the MIB510 programming board * stk500.c: Add a workaround for the different signon sequence on MIB510 programmers.
Joerg Wunsch
2009-02-16 10:19:46 +00:00
ad71fba00cAdd the ATmega128RFA1, and document this.
Joerg Wunsch
2009-02-05 16:20:29 +00:00
abb56b44fbAdd the ATmega128RFA1, and document this.
Joerg Wunsch
2009-02-05 16:20:29 +00:00
981c91d72fChange the prototype for usleep() to be more Cygwin-friendly.
Joerg Wunsch
2008-11-19 23:32:30 +00:00
6bfb5f1f94Change the prototype for usleep() to be more Cygwin-friendly.
Joerg Wunsch
2008-11-19 23:32:30 +00:00
4f316d8f99Submitted by limor <limor@ladyada.net> * usbtiny.c (usbtiny_cmd): Replace sizeof() by a fixed constant 4 for the result array, because otherwise it would take the size of a pointer which miserably fails on 64-bit machines.
Joerg Wunsch
2008-11-06 09:47:37 +00:00
d70f6c343cSubmitted by limor <limor@ladyada.net> * usbtiny.c (usbtiny_cmd): Replace sizeof() by a fixed constant 4 for the result array, because otherwise it would take the size of a pointer which miserably fails on 64-bit machines.
Joerg Wunsch
2008-11-06 09:47:37 +00:00
f66015f6e1patch #6609: Using PCI parallel port cards on Windows * ppiwin.c (ppi_open): If the port parameter passed from the -p option is neither lpt1/2/3, try interpreting it directly as a base address. * avrdude.1: Document the change. * doc/avrdude.texi: (Ditto.)
Joerg Wunsch
2008-11-05 20:53:51 +00:00
e031a67542patch #6609: Using PCI parallel port cards on Windows * ppiwin.c (ppi_open): If the port parameter passed from the -p option is neither lpt1/2/3, try interpreting it directly as a base address. * avrdude.1: Document the change. * doc/avrdude.texi: (Ditto.)
Joerg Wunsch
2008-11-05 20:53:51 +00:00
5813809496bug #22882: Erase Cycle Counter does not work for stk500v2 * stk500v2.c (stk500v2_chip_erase,stk500hv_chip_erase): Return the expected 0 for success rather than a protocol-dependant number.
Joerg Wunsch
2008-11-04 13:15:21 +00:00
cafa88eb9ebug #22882: Erase Cycle Counter does not work for stk500v2 * stk500v2.c (stk500v2_chip_erase,stk500hv_chip_erase): Return the expected 0 for success rather than a protocol-dependant number.
Joerg Wunsch
2008-11-04 13:15:21 +00:00
f561766001bug #22883: Chip Erase performed even with no-write flag (-n)
Joerg Wunsch
2008-11-04 12:10:28 +00:00
889b1f3e48bug #22883: Chip Erase performed even with no-write flag (-n)
Joerg Wunsch
2008-11-04 12:10:28 +00:00
97dbcab70cRemove garbage from end of signature lines in AT90USB646/647, left over accidentally from rev 1.131.
Joerg Wunsch
2008-11-04 11:46:32 +00:00
f8f1e6486aRemove garbage from end of signature lines in AT90USB646/647, left over accidentally from rev 1.131.
Joerg Wunsch
2008-11-04 11:46:32 +00:00
21d6738cc8Fix a serious memory corruption that happened when using the JTAG ICE mkII (or AVR Dragon) in ISP mode. The wrong set of per-programmer private data had been allocated (stk500v2 vs. jtagmkII) which was too small to hold the actual data.
Joerg Wunsch
2008-10-31 21:26:06 +00:00
d230a46035Fix a serious memory corruption that happened when using the JTAG ICE mkII (or AVR Dragon) in ISP mode. The wrong set of per-programmer private data had been allocated (stk500v2 vs. jtagmkII) which was too small to hold the actual data.
Joerg Wunsch
2008-10-31 21:26:06 +00:00
a91e8e01b2This change actually dates back to July 29: add preliminary support for Xmega programming using the JTAG ICE mkII in JTAG mode.
Joerg Wunsch
2008-10-31 21:16:46 +00:00
fae57bc0faThis change actually dates back to July 29: add preliminary support for Xmega programming using the JTAG ICE mkII in JTAG mode.
Joerg Wunsch
2008-10-31 21:16:46 +00:00
3673174077* main.c: Remember whether the device initialization worked, and allow to continue with -F if it failed yet do not attempt to perform anything on the device itself. That way, -tF could be specified for programmers like the STK500/STK600 even without a device connected, just in order to allow changing parameters on the programmer itself. * avrdude.1: Document that possible use of the -F option. * doc/avrdude.texi: (Ditto.)
Joerg Wunsch
2008-07-29 21:26:55 +00:00
499b0bec72* main.c: Remember whether the device initialization worked, and allow to continue with -F if it failed yet do not attempt to perform anything on the device itself. That way, -tF could be specified for programmers like the STK500/STK600 even without a device connected, just in order to allow changing parameters on the programmer itself. * avrdude.1: Document that possible use of the -F option. * doc/avrdude.texi: (Ditto.)
Joerg Wunsch
2008-07-29 21:26:55 +00:00
7f29eb67ea* stk500v2.c (stk600_xprog_paged_write): Fix a fatal miscalculation of the number of bytes to be written which caused a malloc chunk corruption.
Joerg Wunsch
2008-07-29 08:39:15 +00:00
40e63d4d1a* stk500v2.c (stk600_xprog_paged_write): Fix a fatal miscalculation of the number of bytes to be written which caused a malloc chunk corruption.
Joerg Wunsch
2008-07-29 08:39:15 +00:00