summaryrefslogtreecommitdiff
path: root/locale/programs/localedef.c
diff options
context:
space:
mode:
Diffstat (limited to 'locale/programs/localedef.c')
-rw-r--r--locale/programs/localedef.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/locale/programs/localedef.c b/locale/programs/localedef.c
index fbcd04a67b..1db26e5427 100644
--- a/locale/programs/localedef.c
+++ b/locale/programs/localedef.c
@@ -463,10 +463,10 @@ construct_output_path (char *path)
the end of the function we need another byte for the trailing
'/'. */
if (normal == NULL)
- asprintf (&result, "%s/%s\0", LOCALE_PATH, path);
+ asprintf (&result, "%s/%s%c", LOCALE_PATH, path, '\0');
else
- asprintf (&result, "%s/%.*s%s%s\0", LOCALE_PATH, startp - path, path,
- normal, endp);
+ asprintf (&result, "%s/%.*s%s%s%c", LOCALE_PATH, startp - path, path,
+ normal, endp, '\0');
}
else
{