mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Change uses of sprintf to snprintf
git-svn-id: svn://coreboot.org/openbios/openbios-devel@277 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -275,7 +275,8 @@ ob_zs_init(uint64_t base, uint64_t offset, int intr, int slave, int keyboard)
|
||||
|
||||
fword("finish-device");
|
||||
|
||||
sprintf(nodebuff, "/obio/zs@0,%x", (int)offset & 0xffffffff);
|
||||
snprintf(nodebuff, sizeof(nodebuff), "/obio/zs@0,%x",
|
||||
(int)offset & 0xffffffff);
|
||||
if (keyboard) {
|
||||
REGISTER_NODE_METHODS(zs_keyboard, nodebuff);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user