about summary refs log tree commit diff
diff options
context:
space:
mode:
-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);