summaryrefslogtreecommitdiffstats
path: root/common/debug.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-07-13 16:40:13 +0200
committerGravatar Martin Szulecki2013-07-13 16:40:13 +0200
commit52c6680bc3c2ee2df793ccf10f7f4be97be2dae9 (patch)
tree86fc1af1a3163b6e59cac23ea010998c4f1b81e5 /common/debug.c
parent85536b2848b8c7f5ed6212db56b4b60592990a00 (diff)
downloadlibimobiledevice-52c6680bc3c2ee2df793ccf10f7f4be97be2dae9.tar.gz
libimobiledevice-52c6680bc3c2ee2df793ccf10f7f4be97be2dae9.tar.bz2
common: Fix malformed binary debug message dumping
Diffstat (limited to 'common/debug.c')
-rw-r--r--common/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/debug.c b/common/debug.c
index 67e2fc2..ad726d1 100644
--- a/common/debug.c
+++ b/common/debug.c
@@ -116,7 +116,7 @@ inline void debug_buffer(const char *data, const int length)
116 fprintf(stderr, " "); 116 fprintf(stderr, " ");
117 continue; 117 continue;
118 } 118 }
119 fprintf(stderr, "%02x ", *(data + i + j)); 119 fprintf(stderr, "%02x ", *(data + i + j) & 0xff);
120 } 120 }
121 fprintf(stderr, " | "); 121 fprintf(stderr, " | ");
122 for (j = 0; j < 16; j++) { 122 for (j = 0; j < 16; j++) {