diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-12-23 15:45:30 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-12-23 15:45:30 +0000 |
commit | 22ff51ee64b2d7ab2ef16d34742d1d8920bfe209 (patch) | |
tree | 0b7d13f779ac0f1e440b60f32991bd6eecc53727 /qemu-nbd.c | |
parent | 2758aa520df0158a3a2902600efe062c5bc4ba01 (diff) | |
download | qemu-22ff51ee64b2d7ab2ef16d34742d1d8920bfe209.zip |
qemu-nbd: fix OpenBSD linker warning
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'qemu-nbd.c')
-rw-r--r-- | qemu-nbd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qemu-nbd.c b/qemu-nbd.c index 91ea01414d..6707ea5cac 100644 --- a/qemu-nbd.c +++ b/qemu-nbd.c @@ -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; } |