diff options
Diffstat (limited to 'locale/programs/ld-collate.c')
-rw-r--r-- | locale/programs/ld-collate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/locale/programs/ld-collate.c b/locale/programs/ld-collate.c index feab034..0cd378f 100644 --- a/locale/programs/ld-collate.c +++ b/locale/programs/ld-collate.c @@ -1842,7 +1842,8 @@ symbol `%s' has the same encoding as"), (*eptr)->name); while (osect != sect) if (osect->rules != NULL - && memcmp (osect->rules, sect->rules, nrules) == 0) + && memcmp (osect->rules, sect->rules, + nrules * sizeof (osect->rules[0])) == 0) break; else osect = osect->next; |