aboutsummaryrefslogtreecommitdiff
path: root/locale/programs
diff options
context:
space:
mode:
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 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
{