curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: How to handle _wcsdup() memory allocation

From: Daniel Stenberg via curl-library <>
Date: Fri, 30 Jul 2021 12:43:08 +0200 (CEST)

On Thu, 29 Jul 2021, Jeff Mears via curl-library wrote:

> Another answer would be for libcurl to implement its own wcsdup, because
> it's just wcslen + Curl_cmalloc + memcpy.

Not being a Windows guy at all, this seems like the most reasonable way that
doesn't introduce a new API and make things work transparently. Is there a
downside with this?

Feel like making a PR?

  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
Received on 2021-07-30