diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1997-01-07 09:58:32 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1997-01-07 09:58:32 +0000 |
commit | 5e572a7e34d51660511bf8813137010fd5f1ccfb (patch) | |
tree | dd032be0ebd5924c9ca5218f0752554265591bbd /usr.bin/mklocale/yacc.y | |
parent | 1e97817fadf7ccc7cd96322fa87f6dd66f22d841 (diff) | |
download | src-5e572a7e34d51660511bf8813137010fd5f1ccfb.tar.gz src-5e572a7e34d51660511bf8813137010fd5f1ccfb.zip |
Fix bugs in runes data handling
Should go into 2.2
Submitted by: Mitsuru IWASAKI <iwasaki@pc.jaring.my>
Notes
Notes:
svn path=/head/; revision=21393
Diffstat (limited to 'usr.bin/mklocale/yacc.y')
-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 8437dc3f2b28..760d112ab2a8 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); |