From: Blue Swirl <blauwirbel@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [6300] Fix some more warnings
Date: Wed, 14 Jan 2009 18:34:23 +0000 [thread overview]
Message-ID: <E1LNAZL-0005GC-2c@cvs.savannah.gnu.org> (raw)
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);
reply other threads:[~2009-01-14 18:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1LNAZL-0005GC-2c@cvs.savannah.gnu.org \
--to=blauwirbel@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).