diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-02-17 16:53:41 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-02-17 16:53:41 +0000 |
commit | 5e9e9c1472a6c20b52fe4bcc3e7ed2d0099150cd (patch) | |
tree | b112fe5b3e0d40c7084dbeb12f812e9c5daac6f5 /locale/programs | |
parent | 07fb518573f6595548f992646a2c65e9b9770268 (diff) | |
download | glibc-5e9e9c1472a6c20b52fe4bcc3e7ed2d0099150cd.tar.gz glibc-5e9e9c1472a6c20b52fe4bcc3e7ed2d0099150cd.tar.xz glibc-5e9e9c1472a6c20b52fe4bcc3e7ed2d0099150cd.zip |
[BZ #3745]
* locale/programs/ld-collate.c (handle_ellipsis): Fix generation of names for ellipsises.
Diffstat (limited to 'locale/programs')
-rw-r--r-- | locale/programs/ld-collate.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/locale/programs/ld-collate.c b/locale/programs/ld-collate.c index af47279958..a4f491cd28 100644 --- a/locale/programs/ld-collate.c +++ b/locale/programs/ld-collate.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1995-2002, 2003, 2005, 2006 Free Software Foundation, Inc. +/* Copyright (C) 1995-2003, 2005, 2006, 2007 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@gnu.org>, 1995. @@ -1330,8 +1330,9 @@ order for `%.*s' already defined at %s:%Zu"), uint32_t wc; int cnt; - /* Generate the the name. */ - sprintf (buf + preflen, base == 10 ? "%ld" : "%lX", from); + /* Generate the name. */ + sprintf (buf + preflen, base == 10 ? "%0*ld" : "%0*lX", + (int) (lenfrom - preflen), from); /* Look whether this name is already defined. */ void *ptr; @@ -3571,7 +3572,6 @@ error while adding equivalent collating symbol")); if (was_ellipsis != tok_none) { - handle_ellipsis (ldfile, symstr, symlen, was_ellipsis, charmap, repertoire, result); |