curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: 3 windows schannel warnings

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 15 Jan 2017 15:48:43 +0100 (CET)

On Sat, 14 Jan 2017, Ray Satiro via curl-library wrote:

> That is because the conversion function-like macros may return the original
> passed-in string instead of converting and returning a copy. I think that is
> bad practice and we should be making a copy of it in any case. I suggest
> something simple like strdup, for example

... and change the Curl_unicodefree() call to a regular free() at the same
time I guess? Sounds like a good plan to me!

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:  https://curl.haxx.se/mail/etiquette.html
Received on 2017-01-15