summaryrefslogtreecommitdiffstats
path: root/common
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
parent85536b2848b8c7f5ed6212db56b4b60592990a00 (diff)
downloadlibimobiledevice-52c6680bc3c2ee2df793ccf10f7f4be97be2dae9.tar.gz
libimobiledevice-52c6680bc3c2ee2df793ccf10f7f4be97be2dae9.tar.bz2
common: Fix malformed binary debug message dumping
Diffstat (limited to 'common')
-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)
fprintf(stderr, " ");
continue;
}
- fprintf(stderr, "%02x ", *(data + i + j));
+ fprintf(stderr, "%02x ", *(data + i + j) & 0xff);
}
fprintf(stderr, " | ");
for (j = 0; j < 16; j++) {