summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-01-19 05:28:48 +0000
committerUlrich Drepper <drepper@redhat.com>2000-01-19 05:28:48 +0000
commit9deb2b365c885d912b7733b828df42668f176f2c (patch)
tree605a18ed2cd32e25926333031de46f29fd3df6fe
parente3a7ff87496c82371904601ad568e7de86db4fce (diff)
downloadglibc-9deb2b365c885d912b7733b828df42668f176f2c.tar.gz
glibc-9deb2b365c885d912b7733b828df42668f176f2c.tar.xz
glibc-9deb2b365c885d912b7733b828df42668f176f2c.zip
Update.
2000-01-18  Ulrich Drepper  <drepper@cygnus.com>

	* locale/programs/charmap.c: NUL-terminte names of generated
	entries for ellipsis.
-rw-r--r--ChangeLog5
-rw-r--r--locale/programs/charmap.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b5d53a5d85..227916c576 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-01-18  Ulrich Drepper  <drepper@cygnus.com>
+
+	* locale/programs/charmap.c: NUL-terminte names of generated
+	entries for ellipsis.
+
 2000-01-18  Andreas Jaeger  <aj@suse.de>
 
 	* sysdeps/unix/sysv/linux/i386/lxstat.c: New file, handles 32bit UIDs.
diff --git a/locale/programs/charmap.c b/locale/programs/charmap.c
index 9f2d8d4bf4..2f9e1b3a06 100644
--- a/locale/programs/charmap.c
+++ b/locale/programs/charmap.c
@@ -898,6 +898,7 @@ hexadecimal range format should use only capital characters"));
       char *name_end;
       obstack_printf (ob, decimal_ellipsis ? "%.*s%0*d" : "%.*s%0*X",
 		      prefix_len, from, len1 - prefix_len, cnt);
+      obstack_1grow (ob, '\0');
       name_end = obstack_finish (ob);
 
       newp = (struct charseq *) obstack_alloc (ob, sizeof (*newp) + nbytes);