From b729ec75ca52e194f1225bbc0752b259be2044c1 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 11 Oct 2001 15:52:17 +0000 Subject: (argmatch_invalid): Use quotearg_n_style (0, ... and quote_n (1, ... to avoid clobbering a buffer. --- lib/argmatch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/argmatch.c b/lib/argmatch.c index af96c8cbe..c86ba71b4 100644 --- a/lib/argmatch.c +++ b/lib/argmatch.c @@ -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. -- cgit v1.2.3-70-g09d2