aboutsummaryrefslogtreecommitdiff
path: root/hw/eepro100.c
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@MIT.EDU>2009-11-25 21:20:10 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-03 15:26:01 -0600
commitec16928806f88b72b35a8bcb52054460db230027 (patch)
tree6a0d8faf89208ce9d7fe8310aa38c79a2532fc15 /hw/eepro100.c
parent5f370b14639370b1e010fac5b1fd094e502a781e (diff)
downloadqemu-ec16928806f88b72b35a8bcb52054460db230027.zip
qemu-ec16928806f88b72b35a8bcb52054460db230027.tar.gz
qemu-ec16928806f88b72b35a8bcb52054460db230027.tar.bz2
eepro100: Allocate a larger buffer for regname()
This should avoid truncating the register name when debugging. Signed-off-by: David Benjamin <davidben@mit.edu> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/eepro100.c')
-rw-r--r--hw/eepro100.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/eepro100.c b/hw/eepro100.c
index eb16a51..52cf902 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) {