summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2007-06-18 13:03:39 +0000
committerMatthias Melcher <fltk@matthiasm.com>2007-06-18 13:03:39 +0000
commit933ce8bf0705d968d46ccd912a34ee53f159e9be (patch)
tree86e211beff9fce1146fb21d17fcba3850116d04b /src
parent3c62765e3ad17efe4845cf1e2019999dedd34253 (diff)
Fixed wrong array size.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5913 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/fl_encoding_mac_roman.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fl_encoding_mac_roman.cxx b/src/fl_encoding_mac_roman.cxx
index 45323d74e..6f28fb01f 100644
--- a/src/fl_encoding_mac_roman.cxx
+++ b/src/fl_encoding_mac_roman.cxx
@@ -59,7 +59,7 @@ const char *fl_local_to_mac_roman(const char *t, int)
#else
// This table converts MSWindows-1252/Latin 1 into MacRoman encoding
-static uchar latin2roman[256] = {
+static uchar latin2roman[128] = {
0xdb, 0xc0, 0xe2, 0xc4, 0xe3, 0xc9, 0xa0, 0xe0, 0xf6, 0xe4, 0xc0, 0xdc, 0xce, 0xc0, 0xc0, 0xc0,
0xc0, 0xd4, 0xd5, 0xd2, 0xd3, 0xa5, 0xd0, 0xd1, 0xf7, 0xaa, 0xc0, 0xdd, 0xcf, 0xc0, 0xc0, 0xd9,
0xca, 0xc1, 0xa2, 0xa3, 0xc0, 0xb4, 0xc0, 0xa4, 0xac, 0xa9, 0xbb, 0xc7, 0xc2, 0xc0, 0xa8, 0xf8,
@@ -71,7 +71,7 @@ static uchar latin2roman[256] = {
};
// This table converts MacRoman into MSWindows-1252/Latin 1
-static uchar roman2latin[256] = {
+static uchar roman2latin[128] = {
0xc4, 0xc5, 0xc7, 0xc9, 0xd1, 0xd6, 0xdc, 0xe1, 0xe0, 0xe2, 0xe4, 0xe3, 0xe5, 0xe7, 0xe9, 0xe8,
0xea, 0xeb, 0xed, 0xec, 0xee, 0xef, 0xf1, 0xf3, 0xf2, 0xf4, 0xf6, 0xf5, 0xfa, 0xf9, 0xfb, 0xfc,
0x86, 0xb0, 0xa2, 0xa3, 0xa7, 0x95, 0xb6, 0xdf, 0xae, 0xa9, 0x99, 0xb4, 0xa8, 0xbf, 0xc6, 0xd8,