Revision 41cbc23c hw/eepro100.c
b/hw/eepro100.c | ||
---|---|---|
537 | 537 |
if (addr < PCI_IO_SIZE) { |
538 | 538 |
const char *r = reg[addr / 4]; |
539 | 539 |
if (r != 0) { |
540 |
sprintf(buf, "%s+%u", r, addr % 4);
|
|
540 |
snprintf(buf, sizeof(buf), "%s+%u", r, addr % 4);
|
|
541 | 541 |
} else { |
542 |
sprintf(buf, "0x%02x", addr);
|
|
542 |
snprintf(buf, sizeof(buf), "0x%02x", addr);
|
|
543 | 543 |
} |
544 | 544 |
} else { |
545 |
sprintf(buf, "??? 0x%08x", addr);
|
|
545 |
snprintf(buf, sizeof(buf), "??? 0x%08x", addr);
|
|
546 | 546 |
} |
547 | 547 |
return buf; |
548 | 548 |
} |
Also available in: Unified diff