Also, while I'm wandering past here, I've just noticed that
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 10 Mar 2005 10:42:18 +0000 (10:42 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 10 Mar 2005 10:42:18 +0000 (10:42 +0000)
`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

index 3cd8eca..41a9f76 100644 (file)
--- 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);
     }