This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: vfork always fail problem


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

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]