mirror of https://github.com/xemu-project/xemu.git
eepro100: Replace sprintf by snprintf
Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
fd9ae2ec06
commit
41cbc23c5c
|
@ -537,12 +537,12 @@ static char *regname(uint32_t addr)
|
|||
if (addr < PCI_IO_SIZE) {
|
||||
const char *r = reg[addr / 4];
|
||||
if (r != 0) {
|
||||
sprintf(buf, "%s+%u", r, addr % 4);
|
||||
snprintf(buf, sizeof(buf), "%s+%u", r, addr % 4);
|
||||
} else {
|
||||
sprintf(buf, "0x%02x", addr);
|
||||
snprintf(buf, sizeof(buf), "0x%02x", addr);
|
||||
}
|
||||
} else {
|
||||
sprintf(buf, "??? 0x%08x", addr);
|
||||
snprintf(buf, sizeof(buf), "??? 0x%08x", addr);
|
||||
}
|
||||
return buf;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue