diff options
author | ache <ache@FreeBSD.org> | 1997-01-07 09:58:32 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-01-07 09:58:32 +0000 |
commit | 3f7af7a1d1570eb9c2e419830221c31c87ad024e (patch) | |
tree | dd032be0ebd5924c9ca5218f0752554265591bbd /usr.bin | |
parent | 727acdc37b5ca7a58b0872a4f29ccf8e16bda4ef (diff) | |
download | FreeBSD-src-3f7af7a1d1570eb9c2e419830221c31c87ad024e.zip FreeBSD-src-3f7af7a1d1570eb9c2e419830221c31c87ad024e.tar.gz |
Fix bugs in runes data handling
Should go into 2.2
Submitted by: Mitsuru IWASAKI <iwasaki@pc.jaring.my>
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/mklocale/yacc.y | 4 |
1 files changed, 2 insertions, 2 deletions
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); |