diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2016-04-06 21:42:55 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2016-04-06 21:42:55 +0000 |
commit | 7bb2a4671503c41d63989dcef9ef54dea0c73b43 (patch) | |
tree | e43704e1f5ae0b762027fb3e6a817cc115ff7efb /libwc/map/uhc_ucs.map | |
parent | Update ChangeLog (diff) | |
download | w3m-7bb2a4671503c41d63989dcef9ef54dea0c73b43.tar.gz w3m-7bb2a4671503c41d63989dcef9ef54dea0c73b43.zip |
Fix segfault on bogus text
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=820162
Diffstat (limited to 'libwc/map/uhc_ucs.map')
-rw-r--r-- | libwc/map/uhc_ucs.map | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libwc/map/uhc_ucs.map b/libwc/map/uhc_ucs.map index b6b43ca..55efc09 100644 --- a/libwc/map/uhc_ucs.map +++ b/libwc/map/uhc_ucs.map @@ -1,6 +1,8 @@ /* UHC/CP949 (Korean) */ -static wc_uint16 uhc_ucs_map[ 0x20 * 0xB2 + 0x27 * 0x54 + 2 ] = { +#define N_uhc_ucs_map (0x20 * 0xB2 + 0x27 * 0x54 + 2) + +static wc_uint16 uhc_ucs_map[ N_uhc_ucs_map ] = { 0xAC02, /* 0x8141 */ 0xAC03, /* 0x8142 */ 0xAC05, /* 0x8143 */ |