diff --git a/ChangeLog b/ChangeLog index 2db7e6f2be0ac217996319e0217d858c30c6268d..14df8f2b9985b568ebc590a4156b8f189f410153 100644 --- a/ChangeLog +++ b/ChangeLog @@ -49,6 +49,8 @@ CVS code - UTF-8 support. Changes to main() and configure.ac. (DLR) - Fix punctuation relating to "i.e." in various comments and documentation. (Benno Schulenberg and DLR) + - Make bad_mbchar a static const char* const in chars.c, as its + value doesn't change. (DLR) - browser.c: do_browser() - Refactor the mouse support, modeling it after do_mouse() for diff --git a/src/chars.c b/src/chars.c index e1afaa2e2136d11739e0043ca1e3c9380a46a747..1f651264e96c421088be5e1e7e7403368e30ae60 100644 --- a/src/chars.c +++ b/src/chars.c @@ -41,7 +41,7 @@ static const wchar_t bad_wchar = 0xFFFD; * Unicode FFFD (Replacement Character), unless we're * determining if it's a control character or searching for a * match to it. */ -static const char *bad_mbchar = "\xEF\xBF\xBD"; +static const char *const bad_mbchar = "\xEF\xBF\xBD"; static const int bad_mbchar_len = 3; /* Enable UTF-8 support. */