[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: NLS functions in the Lua core
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 7 Nov 2007 13:09:55 -0200
> Speaking of which... there's a point I don't understand in l_strcmp():
>
> int temp = strcoll(l, r);
>
> what happens if neither string has a '\0' terminator? Does strcoll() go
> ahead reading memory (possibly causing an exception or other undesired
> behavior)?
Read the comments in the code. In Lua all strings have a '\0' terminator.