summary refs log tree commit diff
path: root/locale/programs
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-03-27 06:37:56 +0000
committerUlrich Drepper <drepper@redhat.com>2000-03-27 06:37:56 +0000
commit30e0f9c39978e52aefbcc54ef69efb439ea20ff5 (patch)
tree0543ba4606d2770e48769952db6a604f424c6945 /locale/programs
parent8e605e789df868763e388dca7040538c1de41b85 (diff)
downloadglibc-30e0f9c39978e52aefbcc54ef69efb439ea20ff5.tar.gz
glibc-30e0f9c39978e52aefbcc54ef69efb439ea20ff5.tar.xz
glibc-30e0f9c39978e52aefbcc54ef69efb439ea20ff5.zip
Update.
	* locale/programs/localedef.c (construct_output_path): If path
	contains a / compute the end of the directory name correctly.
Diffstat (limited to 'locale/programs')
-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 9def7a38ad..e129c0c241 100644
--- a/locale/programs/localedef.c
+++ b/locale/programs/localedef.c
@@ -367,7 +367,7 @@ construct_output_path (char *path)
 	 memory allocation.  */
       size_t len = strlen (path) + 1;
       result = xmalloc (len + 1);
-      endp = mempcpy (result, path, len);
+      endp = mempcpy (result, path, len) - 1;
     }
 
   errno = 0;