From 0bac815b87dee89332b3bd7afb0fe8d2e5d5737a Mon Sep 17 00:00:00 2001 From: simon Date: Thu, 10 Mar 2005 10:42:18 +0000 Subject: [PATCH] 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. git-svn-id: svn://svn.tartarus.org/sgt/halibut@5477 cda61777-01e9-0310-a592-d414129be87e --- 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); } -- 2.11.0