Commit f785c013 authored by Simon Middleton's avatar Simon Middleton
Browse files

Fixed bug in checking the buffer size available for writing (postindex...

Fixed bug in checking the buffer size available for writing (postindex decrement rather than preindex).

Only affected the 8bit encoders.

Version 0.05. Tagged as 'Unicode-0_05'
parent fa3fa475
/* (0.04)
/* (0.05)
*
* This file is automatically maintained by srccommit, do not edit manually.
*
*/
#define Module_MajorVersion_CMHG 0.04
#define Module_MajorVersion_CMHG 0.05
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 21 Nov 1997
#define Module_Date_CMHG 24 Nov 1997
#define Module_MajorVersion "0.04"
#define Module_MajorVersion "0.05"
#define Module_MinorVersion ""
#define Module_Date "21 Nov 1997"
#define Module_Date "24 Nov 1997"
......@@ -72,7 +72,7 @@ static int eightbit_write(EncodingPriv *e, UCS4 u, char **s, int *bufsize)
EightBit_Encoding *ee = (EightBit_Encoding *) e;
int i, c;
if ( (*bufsize)-- < 0 || !s)
if ( --(*bufsize) < 0 || !s)
return 0;
if (u < 0x80)
......
......@@ -58,7 +58,7 @@ static int ascii_write(EncodingPriv *e, UCS4 u, char **s, int *bufsize)
{
int c;
if ((*bufsize)-- < 0 || !s)
if (--(*bufsize) < 0 || !s)
return 0;
if (u < 0x80)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment