From: David Benjamin Date: Thu, 26 Nov 2009 02:20:10 +0000 (-0500) Subject: eepro100: Allocate a larger buffer for regname() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ec16928806f88b72b35a8bcb52054460db230027;p=qemu.git eepro100: Allocate a larger buffer for regname() This should avoid truncating the register name when debugging. Signed-off-by: David Benjamin Signed-off-by: Anthony Liguori --- diff --git a/hw/eepro100.c b/hw/eepro100.c index eb16a51a49..52cf9028be 100644 --- a/hw/eepro100.c +++ b/hw/eepro100.c @@ -648,7 +648,7 @@ static const char * const reg[PCI_IO_SIZE / 4] = { static char *regname(uint32_t addr) { - static char buf[16]; + static char buf[32]; if (addr < PCI_IO_SIZE) { const char *r = reg[addr / 4]; if (r != 0) {