mirror of
https://github.com/qemu/qemu.git
synced 2024-11-23 19:03:38 +08:00
qemu-nbd: fix OpenBSD linker warning
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
2758aa520d
commit
22ff51ee64
@ -353,7 +353,8 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
if (socket == NULL) {
|
||||
sprintf(sockpath, SOCKET_PATH, basename(device));
|
||||
snprintf(sockpath, sizeof(sockpath), SOCKET_PATH,
|
||||
basename(device));
|
||||
socket = sockpath;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user