about summary refs log tree commit diff
path: root/locale/programs/locfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'locale/programs/locfile.c')
-rw-r--r--locale/programs/locfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/locale/programs/locfile.c b/locale/programs/locfile.c
index 89dc6bb539..3bbe479017 100644
--- a/locale/programs/locfile.c
+++ b/locale/programs/locfile.c
@@ -935,7 +935,7 @@ write_locale_data (const char *output_path, const char *category,
   int fd;
   char *fname;
 
-  asprintf (&fname, "%s/%s", output_path, category);
+  asprintf (&fname, "%s%s", output_path, category);
   fd = creat (fname, 0666);
   if (fd == -1)
     {
@@ -944,7 +944,7 @@ write_locale_data (const char *output_path, const char *category,
       if (errno == EISDIR)
 	{
 	  free (fname);
-	  asprintf (&fname, "%1$s/%2$s/SYS_%2$s", output_path, category);
+	  asprintf (&fname, "%1$s%2$s/SYS_%2$s", output_path, category);
 	  fd = creat (fname, 0666);
 	  if (fd == -1)
 	    save_err = errno;