summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2008-12-12 09:04:00 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2008-12-12 09:04:00 +0000
commita902f8eb1112e59109ff14520706bb75f3cf6790 (patch)
tree7ab15d722bbf2d4b89e9f77efa9fab3cae7049fb
parent646a71162cabe13f96627ea6cbeb91864e9fc625 (diff)
downloadvte-a902f8eb1112e59109ff14520706bb75f3cf6790.tar.gz
Avoid pointers in the const array.
2008-12-12 Behdad Esfahbod <behdad@gnome.org> * src/iso2022.c (_vte_iso2022_ambiguous_width): Avoid pointers in the const array. svn path=/trunk/; revision=2341
-rw-r--r--ChangeLog5
-rw-r--r--src/iso2022.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c5ca925a..f2c3009c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2008-12-12 Behdad Esfahbod <behdad@gnome.org>
+ * src/iso2022.c (_vte_iso2022_ambiguous_width): Avoid pointers in the
+ const array.
+
+2008-12-12 Behdad Esfahbod <behdad@gnome.org>
+
Bug 149631 – gnome-terminal doesn't combine combining chars in utf8
* src/vteunistr.c:
diff --git a/src/iso2022.c b/src/iso2022.c
index 94e7bb8e..a42e5964 100644
--- a/src/iso2022.c
+++ b/src/iso2022.c
@@ -320,7 +320,7 @@ _vte_iso2022_ambiguous_width_guess(void)
static int
_vte_iso2022_ambiguous_width(struct _vte_iso2022_state *state)
{
- const char *wide_codelist[] = {
+ const char wide_codelist[][10] = {
"big5",
"big5hkscs",
"euccn",