aboutsummaryrefslogtreecommitdiff
path: root/locale
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
parent8e605e789df868763e388dca7040538c1de41b85 (diff)
downloadglibc-30e0f9c39978e52aefbcc54ef69efb439ea20ff5.zip
glibc-30e0f9c39978e52aefbcc54ef69efb439ea20ff5.tar.gz
glibc-30e0f9c39978e52aefbcc54ef69efb439ea20ff5.tar.bz2
Update.
* locale/programs/localedef.c (construct_output_path): If path contains a / compute the end of the directory name correctly.
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 9def7a3..e129c0c 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;