mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
save: Make xmlEscapeTab signed
Fixes issues in platforms where char is unsigned. Fixes #797.
This commit is contained in:
parent
6e503eb742
commit
5e7874015e
@ -128,7 +128,7 @@ static const char xmlEscapeContent[] = {
|
||||
';',
|
||||
};
|
||||
|
||||
static const char xmlEscapeTab[128] = {
|
||||
static const signed char xmlEscapeTab[128] = {
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, -1, -1, 0, 0, 20, 0, 0,
|
||||
0, 0, 0, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
@ -139,7 +139,7 @@ static const char xmlEscapeTab[128] = {
|
||||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
};
|
||||
|
||||
static const char xmlEscapeTabAttr[128] = {
|
||||
static const signed char xmlEscapeTabAttr[128] = {
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 14, 0, 0, 20, 0, 0,
|
||||
0, 0, 0, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, 26, -1, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||
@ -154,7 +154,7 @@ static void
|
||||
xmlSerializeText(xmlOutputBufferPtr buf, const xmlChar *string,
|
||||
unsigned flags) {
|
||||
const char *cur;
|
||||
const char *tab;
|
||||
const signed char *tab;
|
||||
|
||||
if (string == NULL)
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user