提交 22ff51ee 编写于 作者: B Blue Swirl

qemu-nbd: fix OpenBSD linker warning

Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 2758aa52
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册