about summary refs log tree commit diff
path: root/locale
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 /locale
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.
Diffstat (limited to 'locale')
-rw-r--r--locale/programs/charmap.c1
1 files changed, 1 insertions, 0 deletions
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);