On Sat, 2009-08-01 at 01:53 +0000, [email protected] wrote:

> Modified: branches/struggleyb/libdom-remain/src/core/document.c
> URL: 
> http://source.netsurf-browser.org/branches/struggleyb/libdom-remain/src/core/document.c?rev=8934&r1=8933&r2=8934&view=diff
> ==============================================================================
> --- branches/struggleyb/libdom-remain/src/core/document.c (original)
> +++ branches/struggleyb/libdom-remain/src/core/document.c Fri Jul 31 20:53:32 
> 2009
> @@ -126,12 +126,11 @@
>       assert(alloc != NULL);
>       assert(impl != NULL);
>  
> -     static const char _document_name[] = "#document";
>       dom_exception err;
>       lwc_string *name;
>       lwc_error lerr;
>       
> -     lerr = lwc_context_intern(ctx, _document_name, 9, &name);
> +     lerr = lwc_context_intern(ctx, "#document", strlen("#document"), &name);

Use SLEN(), instead of strlen() for string literals. It's defined in
utils.h.


J.


Reply via email to