cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: getinmemory.c sample crashes with TCHAR

From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Sun, 12 Nov 2006 18:41:33 -0600

> There it is. As I said, it is 99% identical to
> what you have in your sample.
> TCHAR *memory;
> ...
> memcpy(&(mem->memory[mem->size]), ptr, realsize);
> ...

Is the subscript for memory[] two bytes wide?

 - Jeff
Received on 2006-11-13