
2 Sep
2010
2 Sep
'10
11:04 p.m.
Hi,
there is a problem with smidump to xml for octet strings with negative values.
For example 0xd0 will be printed as 0xff.
This patch fix it:
Index: tools/dump-xml.c =================================================================== --- tools/dump-xml.c (Revision 28966) +++ tools/dump-xml.c (Arbeitskopie) @@ -244,7 +244,7 @@ } else { sprintf(s, "0x%*s", 2 * valuePtr->len, ""); for (i=0; i < valuePtr->len; i++) { - sprintf(ss, "%02x", valuePtr->value.ptr[i]); + sprintf(ss, "%02x", (unsigned char)(valuePtr-
value.ptr[i]));
strncpy(&s[2+2*i], ss, 2); } }
With regards, Claus Klein