Commit 47a31884 authored by William M. Brack's avatar William M. Brack
Browse files

changed char array initialisation to avoid a complaint from some

* xmlwriter.c: changed char array initialisation to avoid a
  complaint from some compiler(s) (bug 152308)
parent f54924bd
Sat Sep 11 09:04:22 PDT 2004 William Brack <wbrack@mmm.com.hk>
* xmlwriter.c: changed char array initialisation to avoid a
complaint from some compiler(s) (bug 152308)
Thu Sep 9 07:22:11 PDT 2004 William Brack <wbrack@mmm.com.hk>
 
* encoding.c: applied fixes for the UTF8ToISO8859x transcoding
......
......@@ -1372,7 +1372,12 @@ xmlOutputBufferWriteBase64(xmlOutputBufferPtr out, int len,
const unsigned char *data)
{
static unsigned char dtable[64] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
{'A','B','C','D','E','F','G','H','I','J','K','L','M',
'N','O','P','Q','R','S','T','U','V','W','X','Y','Z',
'a','b','c','d','e','f','g','h','i','j','k','l','m',
'n','o','p','q','r','s','t','u','v','w','x','y','z',
'0','1','2','3','4','5','6','7','8','9','+','/'};
int i;
int linelen;
int count;
......@@ -1487,7 +1492,8 @@ xmlTextWriterWriteBase64(xmlTextWriterPtr writer, const char *data,
* Write hqx encoded data to an xmlOutputBuffer.
* ::todo
*
* Returns the bytes written (may be 0 because of buffering) or -1 in case of error
* Returns the bytes written (may be 0 because of buffering)
* or -1 in case of error
*/
static int
xmlOutputBufferWriteBinHex(xmlOutputBufferPtr out,
......@@ -1495,7 +1501,8 @@ xmlOutputBufferWriteBinHex(xmlOutputBufferPtr out,
{
int count;
int sum;
static char hex[] = "0123456789ABCDEF";
static char hex[16] =
{'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'};
int i;
if ((out == NULL) || ((data == 0) && (len != 0))) {
......
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