projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2758aa5
)
qemu-nbd: fix OpenBSD linker warning
author
Blue Swirl
<blauwirbel@gmail.com>
Wed, 23 Dec 2009 15:45:30 +0000
(15:45 +0000)
committer
Blue Swirl
<blauwirbel@gmail.com>
Wed, 23 Dec 2009 15:45:30 +0000
(15:45 +0000)
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
qemu-nbd.c
patch
|
blob
|
history
diff --git
a/qemu-nbd.c
b/qemu-nbd.c
index 91ea01414d1abe3e7ef811658df0ef6d7c6f64b9..6707ea5cacce1c6abdb89359c2c770aa292e67eb 100644
(file)
--- 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;
}