projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d73e81a
)
eepro100: Replace sprintf by snprintf
author
Stefan Weil
<weil@mail.berlios.de>
Sat, 19 Sep 2009 10:29:59 +0000
(12:29 +0200)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Sat, 26 Sep 2009 21:48:17 +0000
(23:48 +0200)
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/eepro100.c
patch
|
blob
|
history
diff --git
a/hw/eepro100.c
b/hw/eepro100.c
index
89987d7
..
f1a9310
100644
(file)
--- a/
hw/eepro100.c
+++ b/
hw/eepro100.c
@@
-537,12
+537,12
@@
static char *regname(uint32_t addr)
if (addr < PCI_IO_SIZE) {
const char *r = reg[addr / 4];
if (r != 0) {
- s
printf(buf
, "%s+%u", r, addr % 4);
+ s
nprintf(buf, sizeof(buf)
, "%s+%u", r, addr % 4);
} else {
- s
printf(buf
, "0x%02x", addr);
+ s
nprintf(buf, sizeof(buf)
, "0x%02x", addr);
}
} else {
- s
printf(buf
, "??? 0x%08x", addr);
+ s
nprintf(buf, sizeof(buf)
, "??? 0x%08x", addr);
}
return buf;
}