From 30e0f9c39978e52aefbcc54ef69efb439ea20ff5 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 27 Mar 2000 06:37:56 +0000 Subject: Update. * locale/programs/localedef.c (construct_output_path): If path contains a / compute the end of the directory name correctly. --- locale/programs/localedef.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'locale/programs/localedef.c') 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; -- cgit 1.4.1