summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Koƛcielnicki <koriakin@0x04.net>2010-11-13 17:50:59 +0000
committerMarcin Slusarz <marcin.slusarz@gmail.com>2011-09-07 12:48:47 +0000
commite33a6d73ab34baf0d86e5137cb14261d2f55bcde (patch)
tree5c58d267eabc12a654bb8f54513673a4d7d20e23
parent16c49046a0dc0ca795d9b596b44e87a2ec571930 (diff)
mmt: Fix dumpmem for 0-length blocks.
-rw-r--r--mmt/mmt_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mmt/mmt_main.c b/mmt/mmt_main.c
index 3b9c4dcb..e8aeb780 100644
--- a/mmt/mmt_main.c
+++ b/mmt/mmt_main.c
@@ -1039,6 +1039,7 @@ static void dumpmem(char *s, Addr addr, UInt size)
{
char line[4096];
int idx = 0;
+ line[0] = 0;
UInt i;
if (!addr || (addr & 0xffff0000) == 0xbeef0000)