about summary refs log tree commit diff
path: root/locale/programs/localedef.c
diff options
context:
space:
mode:
Diffstat (limited to 'locale/programs/localedef.c')
-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;