On Wed, 26 Sep 2007, Alvaro Lopez Ortega wrote:

> Stefan de Konink wrote, On 26/09/07 13:18:
>
>  > This is because the cmp_str macro in header.c uses the sizeof keyword.
>  > sizeof is able to return the length of a hard-coded array, but not after
>  > the addres of this array has been cast. Example:
>  >
>  > int main() {
>  >         printf("%i\n", sizeof("test test"));
>  >         printf("%i\n", sizeof((const char *)"test test"));
>  > }
>
> Great catch!!
> I have just committed r923 with your patch.
>
> Thanks Stefan :-)


I'll forward the compliment ;) Btw, will you fix the mailinglist?



Stefan

_______________________________________________
Cherokee mailing list
[email protected]
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee

Reply via email to