(argmatch_invalid): Use quotearg_n_style (0, ...
authorJim Meyering <jim@meyering.net>
Thu, 11 Oct 2001 15:52:17 +0000 (15:52 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 11 Oct 2001 15:52:17 +0000 (15:52 +0000)
and quote_n (1, ... to avoid clobbering a buffer.

lib/argmatch.c

index af96c8c..c86ba71 100644 (file)
@@ -160,8 +160,8 @@ argmatch_invalid (const char *context, const char *value, int problem)
                        ? _("invalid argument %s for %s")
                        : _("ambiguous argument %s for %s"));
 
-  error (0, 0, format, quotearg_style (ARGMATCH_QUOTING_STYLE, value),
-        quote (context));
+  error (0, 0, format, quotearg_n_style (0, ARGMATCH_QUOTING_STYLE, value),
+        quote_n (1, context));
 }
 
 /* List the valid arguments for argmatch.