kernel32: Remove unwanted null terminator

Andrew Talbot Andrew.Talbot at talbotville.com
Mon Sep 25 11:51:32 CDT 2006


Alexandre Julliard wrote:

> Andrew Talbot <Andrew.Talbot at talbotville.com> writes:
> 
>> Changelog:
>>     kernel32: Remove unwanted null terminator.
> 
> There's no null terminator since the array size is specified
> explicitly.
> 
Ah, that's interesting! I see, from K&R, that "if [the array's] size is
fixed, the number of characters in the string, not counting the terminating
null character, must not exceed the size of the array." I had wrongly
assumed that the null character had to be counted in, too.

We live and learn!

Thanks,

-- Andy.





More information about the wine-devel mailing list