Thu May 23 00:01:10 1996 Ulrich Drepper <drepper@cygnus.com>
authorroland <roland>
Thu, 23 May 1996 02:30:41 +0000 (02:30 +0000)
committerroland <roland>
Thu, 23 May 1996 02:30:41 +0000 (02:30 +0000)
* locale/programs/locfile.c (write_locale_data): Don't use
double `/' in locale binary file.

locale/programs/locfile.c

index 89dc6bb..3bbe479 100644 (file)
@@ -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;