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   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to