mirror of https://github.com/xemu-project/xemu.git
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) {
|
if (socket == NULL) {
|
||||||
sprintf(sockpath, SOCKET_PATH, basename(device));
|
snprintf(sockpath, sizeof(sockpath), SOCKET_PATH,
|
||||||
|
basename(device));
|
||||||
socket = sockpath;
|
socket = sockpath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue