about summary refs log tree commit diff
path: root/locale
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-09-05 05:52:09 +0000
committerUlrich Drepper <drepper@redhat.com>2000-09-05 05:52:09 +0000
commit16fe0a88352bf68169c025831163437754be861f (patch)
tree2853f17b41af42a7732684ca28967e3151f6b3e7 /locale
parent5e6160ede791dd645a4439498c4e025ad7bde368 (diff)
downloadglibc-16fe0a88352bf68169c025831163437754be861f.tar.gz
glibc-16fe0a88352bf68169c025831163437754be861f.tar.xz
glibc-16fe0a88352bf68169c025831163437754be861f.zip
Update.
2000-09-04  Ulrich Drepper  <drepper@redhat.com>

	* locale/programs/localedef.c (construct_output_path): Correct
	computation of endp after asprintf.
	* locale/programs/locfile.c (write_locale_data): Don't add extra
	slash in filename.
Diffstat (limited to 'locale')
-rw-r--r--locale/programs/localedef.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/locale/programs/localedef.c b/locale/programs/localedef.c
index 719cfd3bb7..0a60d5c209 100644
--- a/locale/programs/localedef.c
+++ b/locale/programs/localedef.c
@@ -374,7 +374,7 @@ construct_output_path (char *path)
 		      output_prefix ?: "", LOCALEDIR,
 		      (int) (startp - path), path, normal, endp, '\0');
 
-      endp = result + n;
+      endp = result + n - 1;
     }
   else
     {