diff options
| author | Simon Tatham <anakin@pobox.com> | 2005-03-10 10:42:18 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2005-03-10 10:42:18 +0000 |
| commit | 2fd0d2ed0c7f939e3f3cd8175395373da4a7718e (patch) | |
| tree | e506b2affdf53a89e88f8be14eff0ec85e143da2 /bk_html.c | |
| parent | cf872c750ac9c937cb77d4bb31abf70d1c4afac7 (diff) | |
| download | halibut-2fd0d2ed0c7f939e3f3cd8175395373da4a7718e.zip halibut-2fd0d2ed0c7f939e3f3cd8175395373da4a7718e.tar.gz halibut-2fd0d2ed0c7f939e3f3cd8175395373da4a7718e.tar.bz2 halibut-2fd0d2ed0c7f939e3f3cd8175395373da4a7718e.tar.xz | |
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]
Diffstat (limited to 'bk_html.c')
| -rw-r--r-- | bk_html.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |