aboutsummaryrefslogtreecommitdiff
path: root/vnc.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-14 18:34:22 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-14 18:34:22 +0000
commitbc575e95d15dae70490ad165950f56235fbfa779 (patch)
tree927bea2614cfd42d261da342864890a1c64c0b72 /vnc.c
parent00766a4ec9dd748dab308f6a2b00f02e964d9951 (diff)
Fix some more warnings
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6300 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vnc.c')
-rw-r--r--vnc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnc.c b/vnc.c
index 575fd68983..e1ff4edd75 100644
--- a/vnc.c
+++ b/vnc.c
@@ -2546,7 +2546,7 @@ int vnc_display_open(DisplayState *ds, const char *display)
char *dpy;
dpy = qemu_malloc(256);
if (strncmp(display, "unix:", 5) == 0) {
- strcpy(dpy, "unix:");
+ pstrcpy(dpy, 256, "unix:");
vs->lsock = unix_listen(display+5, dpy+5, 256-5);
} else {
vs->lsock = inet_listen(display, dpy, 256, SOCK_STREAM, 5900);