mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
Fix some more warnings
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6300 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
00766a4ec9
commit
bc575e95d1
2 changed files with 2 additions and 2 deletions
2
vnc.c
2
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue