1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

fix dump printout when byte >= 0x80

(This used to be commit e18fab269c7370a6670c56eeab60fd90feecf0b2)
This commit is contained in:
Herb Lewis 2007-12-20 14:57:29 -08:00
parent 4c3c483fbf
commit df133758c2

View File

@ -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) {