qemu-nbd: fix OpenBSD linker warning

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
Blue Swirl 2009-12-23 15:45:30 +00:00
parent 2758aa520d
commit 22ff51ee64

View File

@ -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;
}