From: simon Date: Thu, 10 Mar 2005 10:42:18 +0000 (+0000) Subject: Also, while I'm wandering past here, I've just noticed that X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/commitdiff_plain/0bac815b87dee89332b3bd7afb0fe8d2e5d5737a 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 --- 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); }