* [Qemu-devel] [5707] r5531 made x509 certs not loadable (original patch from Henrik Holst ).
@ 2008-11-12 16:50 Andrzej Zaborowski
0 siblings, 0 replies; only message in thread
From: Andrzej Zaborowski @ 2008-11-12 16:50 UTC (permalink / raw)
To: qemu-devel
Revision: 5707
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5707
Author: balrog
Date: 2008-11-12 16:50:36 +0000 (Wed, 12 Nov 2008)
Log Message:
-----------
r5531 made x509 certs not loadable (original patch from Henrik Holst).
The patch in r5531 which replaced a bunch of strncpy with pstrcpy causes
the x509 credentials from the -vnc parameter to be one character shorter
than entered meaning that there is currently no way to enter x509
certificates...
Modified Paths:
--------------
trunk/vnc.c
Modified: trunk/vnc.c
===================================================================
--- trunk/vnc.c 2008-11-12 16:41:32 UTC (rev 5706)
+++ trunk/vnc.c 2008-11-12 16:50:36 UTC (rev 5707)
@@ -2329,10 +2329,8 @@
end = strchr(options, ',');
if (start && (!end || (start < end))) {
int len = end ? end-(start+1) : strlen(start+1);
- char *path = qemu_malloc(len+1);
+ char *path = qemu_strndup(start + 1, len);
- pstrcpy(path, len, start + 1);
- path[len] = '\0';
VNC_DEBUG("Trying certificate path '%s'\n", path);
if (vnc_set_x509_credential_dir(vs, path) < 0) {
fprintf(stderr, "Failed to find x509 certificates/keys in %s\n", path);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-11-12 16:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-12 16:50 [Qemu-devel] [5707] r5531 made x509 certs not loadable (original patch from Henrik Holst ) Andrzej Zaborowski
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).