Fix bugs in runes data handling

Should go into 2.2
Submitted by: Mitsuru IWASAKI <iwasaki@pc.jaring.my>
This commit is contained in:
Andrey A. Chernov 1997-01-07 09:58:32 +00:00
parent 1e97817fad
commit 5e572a7e34
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=21393

View File

@ -479,7 +479,7 @@ add_map(map, list, flag)
for (i = r->max+1; i <= list->max; ++i)
r->types[i - r->min] = flag;
}
r->max = r->max;
r->max = list->max;
free(list);
}
@ -661,7 +661,7 @@ dump_tables()
list->types[x] = htonl(list->types[x]);
if (!list->map) {
if (fwrite((char *)&list->types,
if (fwrite((char *)list->types,
(list->max - list->min + 1) * sizeof(unsigned long),
1, fp) != 1) {
perror(locale_file);