commit | 57d480d2b425ef20d8b6f84abd4e9e3209fa9422 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Sun Feb 09 10:35:38 2014 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Sat Feb 22 12:46:06 2014 +0900 |
tree | 1d4d53278970b0681042e4f10ef44c1c5334bc5f | |
parent | 07f0265830fcae2632159e9993b93a161d7ea23b [diff] [blame] |
Support translating fragmented packets. Bug: 11542311 Change-Id: I14a20b9ac669cdb5927f6ac26147bb0109099497
diff --git a/dump.c b/dump.c index 94e4796..ba5fa3e 100644 --- a/dump.c +++ b/dump.c
@@ -220,6 +220,7 @@ 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]); }