qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [6300] Fix some more warnings
@ 2009-01-14 18:34 Blue Swirl
  0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2009-01-14 18:34 UTC (permalink / raw)
  To: qemu-devel

Revision: 6300
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6300
Author:   blueswir1
Date:     2009-01-14 18:34:22 +0000 (Wed, 14 Jan 2009)

Log Message:
-----------
Fix some more warnings

Modified Paths:
--------------
    trunk/qemu-sockets.c
    trunk/vnc.c

Modified: trunk/qemu-sockets.c
===================================================================
--- trunk/qemu-sockets.c	2009-01-14 18:08:08 UTC (rev 6299)
+++ trunk/qemu-sockets.c	2009-01-14 18:34:22 UTC (rev 6300)
@@ -107,7 +107,7 @@
     /* parse address */
     if (str[0] == ':') {
         /* no host given */
-        strcpy(addr,"");
+        addr[0] = '\0';
         if (1 != sscanf(str,":%32[^,]%n",port,&pos)) {
             fprintf(stderr, "%s: portonly parse error (%s)\n",
                     __FUNCTION__, str);

Modified: trunk/vnc.c
===================================================================
--- trunk/vnc.c	2009-01-14 18:08:08 UTC (rev 6299)
+++ trunk/vnc.c	2009-01-14 18:34:22 UTC (rev 6300)
@@ -2546,7 +2546,7 @@
         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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-14 18:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-14 18:34 [Qemu-devel] [6300] Fix some more warnings Blue Swirl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).