commit | 22ff51ee64b2d7ab2ef16d34742d1d8920bfe209 | [log] [tgz] |
---|---|---|
author | Blue Swirl <blauwirbel@gmail.com> | Wed Dec 23 15:45:30 2009 +0000 |
committer | Blue Swirl <blauwirbel@gmail.com> | Wed Dec 23 15:45:30 2009 +0000 |
tree | 0b7d13f779ac0f1e440b60f32991bd6eecc53727 | |
parent | 2758aa520df0158a3a2902600efe062c5bc4ba01 [diff] |
qemu-nbd: fix OpenBSD linker warning Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
diff --git a/qemu-nbd.c b/qemu-nbd.c index 91ea014..6707ea5 100644 --- a/qemu-nbd.c +++ b/qemu-nbd.c
@@ -353,7 +353,8 @@ } if (socket == NULL) { - sprintf(sockpath, SOCKET_PATH, basename(device)); + snprintf(sockpath, sizeof(sockpath), SOCKET_PATH, + basename(device)); socket = sockpath; }