]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Convert "`%s'" in format strings to "%s", and wrap each
authorJim Meyering <jim@meyering.net>
Sun, 30 Jul 2000 16:33:08 +0000 (16:33 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 30 Jul 2000 16:33:08 +0000 (16:33 +0000)
corresponding argument in a `quote (...)' call.

src/shred.c

index aa2da631e84ba55996f6db3c44fd9951530e20f2..51ae50755e89211ea8c7c34c925b571ea26ad5f8 100644 (file)
@@ -95,6 +95,7 @@
 # include "error.h"
 # include "human.h"
 # include "quotearg.h"         /* For quotearg_colon */
+# include "quote.h"            /* For quotearg_colon */
 # include "xalloc.h"
 char *xstrdup PARAMS ((char const *));
 
@@ -1608,7 +1609,8 @@ wipename (char *oldname, char const *qoldname, struct Options const *flags)
                       * about renaming oldname.  newname doesn't need
                       * quoting because we picked it.
                       */
-                     error (0, 0, _("%s: renamed to `%s'"), qoldname, newname);
+                     error (0, 0, _("%s: renamed to %s"), qoldname,
+                            quote (newname));
                    }
                  memcpy (oldname + (base - newname), base, len + 1);
                  break;