qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] r5531 made x509 certs not loadable [PATCH]


From: Henrik Holst
Subject: Re: [Qemu-devel] r5531 made x509 certs not loadable [PATCH]
Date: Fri, 14 Nov 2008 15:39:16 +0100

>2008/11/12 Henrik Holst <address@hidden>:
>> 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...
>>
>> The attached patch fixes this. Also the path[len]='\0' is unnecessary
>> now that pstrcpy is used. The problem was that the previous strncpy was
>> called correctly which the r5531 patch didn't think. And due to how the
>> code is a memcpy could probably be used instead...
>
>Thanks for spotting.  I made it a qemu_strndup instead because that's
>basically what's being implemented here (to be exact it could be a
>memdup() here because the length is already known).  Please test.
>
>Cheers

Works like a charm!

/Henrik Holst
Witsbits AB





reply via email to

[Prev in Thread] Current Thread [Next in Thread]