On 2/8/2011 8:29 AM, Steve Hay wrote:
> +        int len = (int)strlen(newarr[arg]) + 1;
> +        *env = (char*)_malloc_dbg(len * sizeof(char), _CRT_BLOCK, __FILE__, 
> __LINE__);
> +        strcpy_s(*env, len, newarr[arg]);

That's just sick ... It's inexcusable to use strcpy when len is already known :)

Very interesting observations, are you in a position to try this with the older
C compilers?  Interested to know if we can just apply this to all flavors 
without
any headaches.

Reply via email to