diff options
author | Herb Lewis <hlewis@chomps2.(none)> | 2007-12-20 14:57:29 -0800 |
---|---|---|
committer | Herb Lewis <hlewis@chomps2.(none)> | 2007-12-20 14:57:29 -0800 |
commit | df133758c2496a5c99441635eca6b77c9019cb8c (patch) | |
tree | 12601e26f832d6adcfdbf5331a1766b806c10594 /source3 | |
parent | 4c3c483fbfd870335f77ab610eb7230639d3d258 (diff) | |
download | samba-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')
-rw-r--r-- | source3/lib/tdb/tools/tdbtool.c | 2 |
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) { |