mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-17 08:00:48 +01:00
Fix bugs in runes data handling
Should go into 2.2 Submitted by: Mitsuru IWASAKI <iwasaki@pc.jaring.my>
This commit is contained in:
parent
1e97817fad
commit
5e572a7e34
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=21393
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user