]> git.proxmox.com Git - mirror_qemu.git/commitdiff
eepro100: Allocate a larger buffer for regname()
authorDavid Benjamin <davidben@MIT.EDU>
Thu, 26 Nov 2009 02:20:10 +0000 (21:20 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 3 Dec 2009 21:26:01 +0000 (15:26 -0600)
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>
hw/eepro100.c

index eb16a51a49c1e36a63adcb283cd134eb163eae86..52cf9028beb343e8661a2bde334e030116464a72 100644 (file)
@@ -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) {