cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: getinmemory.c sample crashes with TCHAR

From: Itamar Syn-Hershko <itamar_at_divrei-tora.com>
Date: Mon, 13 Nov 2006 12:22:44 +0200

>
> Is the subscript for memory[] two bytes wide?
>
>
> - Jeff

What do you suggest? Having this line look like this:

memcpy(&(mem->memory[mem->size * sizeof(TCHAR)]), ptr, realsize *
sizeof(TCHAR));

I thought this would not be necessary?

Itamar.
Received on 2006-11-13