vfork always fail problem

Eric Blake eblake@redhat.com
Tue May 18 15:10:00 GMT 2010


On 05/18/2010 08:31 AM, Christopher Faylor wrote:
>>
>> -      WCHAR corefile[strlen (p) + sizeof (".stackdump")];
>> +      WCHAR corefile[wcslen (p) + sizeof (L".stackdump")];
>                                     ^^^^^^^^^^^^^^^^^^^^^^
> No L" is needed here, AFAICT.
>
> I've checked this in, removing the L.

I had to think about that, so I'm replying to document my thoughts.  You
want either 'sizeof (".stackdump")' or 'sizeof (L".stackdump") / sizeof
WCHAR'; and since both give the same value, Chris' change is correct.

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100518/f9febe81/attachment.sig>


More information about the Cygwin mailing list