On Tue, Aug 3, 2010 at 7:49 AM, Vitaliy Margolen wine-devel@kievinfo.com wrote:
- memcpy(ww->ds_desc.szDesc, description,
- min( (sizeof(ww->ds_desc.szDesc) - 1), strlen(description))
);
This does not guarantee that ww->ds_desc.szDesc will be \0 terminated.
Vitaliy.
What do you want me to do? This looks pretty safe to me and I just copied the block from elsewhere and replaced the variables. Do you want me to manually read to the end of ww->ds_desc.szDesc and replace with a \0? Sorry for the noobness.
From Jeff