From 3f7af7a1d1570eb9c2e419830221c31c87ad024e Mon Sep 17 00:00:00 2001 From: ache Date: Tue, 7 Jan 1997 09:58:32 +0000 Subject: Fix bugs in runes data handling Should go into 2.2 Submitted by: Mitsuru IWASAKI --- usr.bin/mklocale/yacc.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/mklocale/yacc.y b/usr.bin/mklocale/yacc.y index 8437dc3..760d112 100644 --- a/usr.bin/mklocale/yacc.y +++ b/usr.bin/mklocale/yacc.y @@ -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); -- cgit v1.1