summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorHerb Lewis <hlewis@chomps2.(none)>2007-12-20 14:57:29 -0800
committerHerb Lewis <hlewis@chomps2.(none)>2007-12-20 14:57:29 -0800
commitdf133758c2496a5c99441635eca6b77c9019cb8c (patch)
tree12601e26f832d6adcfdbf5331a1766b806c10594 /source3/lib
parent4c3c483fbfd870335f77ab610eb7230639d3d258 (diff)
downloadsamba-df133758c2496a5c99441635eca6b77c9019cb8c.tar.gz
samba-df133758c2496a5c99441635eca6b77c9019cb8c.tar.bz2
samba-df133758c2496a5c99441635eca6b77c9019cb8c.zip
fix dump printout when byte >= 0x80
(This used to be commit e18fab269c7370a6670c56eeab60fd90feecf0b2)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/tdb/tools/tdbtool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/tdb/tools/tdbtool.c b/source3/lib/tdb/tools/tdbtool.c
index 79435a3571..d104ccd7c4 100644
--- a/source3/lib/tdb/tools/tdbtool.c
+++ b/source3/lib/tdb/tools/tdbtool.c
@@ -135,7 +135,7 @@ static void print_data(const char *buf,int len)
if (len<=0) return;
printf("[%03X] ",i);
for (i=0;i<len;) {
- printf("%02X ",(int)buf[i]);
+ printf("%02X ",(int)((unsigned char)buf[i]));
i++;
if (i%8 == 0) printf(" ");
if (i%16 == 0) {