git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c3c483
)
fix dump printout when byte >= 0x80
author
Herb Lewis
<hlewis@chomps2.(none)>
Thu, 20 Dec 2007 22:57:29 +0000
(14:57 -0800)
committer
Herb Lewis
<hlewis@chomps2.(none)>
Thu, 20 Dec 2007 22:57:29 +0000
(14:57 -0800)
(This used to be commit
e18fab269c7370a6670c56eeab60fd90feecf0b2
)
source3/lib/tdb/tools/tdbtool.c
patch
|
blob
|
history
diff --git
a/source3/lib/tdb/tools/tdbtool.c
b/source3/lib/tdb/tools/tdbtool.c
index 79435a3571cf61f02233d088e7ce3f01354b19af..d104ccd7c44994e9d0f8ba138cbf4584343983dc 100644
(file)
--- 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) {