From 2fd0d2ed0c7f939e3f3cd8175395373da4a7718e Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 10 Mar 2005 10:42:18 +0000 Subject: Also, while I'm wandering past here, I've just noticed that `anonfrag' should be a char[] rather than a char *, or else lenof() will give the wrong answer. [originally from svn r5477] --- bk_html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bk_html.c b/bk_html.c index 3cd8eca..41a9f76 100644 --- a/bk_html.c +++ b/bk_html.c @@ -2101,7 +2101,7 @@ static char *html_sanitise_fragment(htmlfilelist *files, htmlfile *file, /* If there's nothing left, make something valid up */ if (!*text) { - static const char *const anonfrag = "anon"; + static const char anonfrag[] = "anon"; text = sresize(text, lenof(anonfrag), char); strcpy(text, anonfrag); } -- cgit v1.1