summaryrefslogtreecommitdiffstats
path: root/dump.c
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2014-02-09 10:35:38 +0900
committerLorenzo Colitti <lorenzo@google.com>2014-03-10 17:44:22 +0900
commit2b4cc7393268622ac3de071435a6e4ab857342df (patch)
treeef8678294829041cf1ed9c0ac3c52c36e2fa31d7 /dump.c
parent13a58c4859164d9f16e124b0f85c35a061dec76d (diff)
downloadplatform_external_android-clat-kitkat-wear.tar.gz
platform_external_android-clat-kitkat-wear.tar.bz2
platform_external_android-clat-kitkat-wear.zip
Bug: 11542311 Change-Id: I5dd29805e12b919ae3105b6128aaedefd7e78b48
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dump.c b/dump.c
index 94e4796..ba5fa3e 100644
--- a/dump.c
+++ b/dump.c
@@ -220,6 +220,7 @@ void logcat_hexdump(const char *info, const char *data, size_t len) {
char output[PACKETLEN*3+2];
size_t i;
+ output[0] = '\0';
for(i = 0; i < len && i < PACKETLEN; i++) {
snprintf(output + i*3, 4, " %02x", (uint8_t)data[i]);
}