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)
diff --git a/xmlwriter.c b/xmlwriter.c
index e7d4cc8..5a7120d 100644
--- a/xmlwriter.c
+++ b/xmlwriter.c
@@ -1372,7 +1372,12 @@
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 @@
* 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 @@
{
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))) {