summaryrefslogtreecommitdiffstats
path: root/carg_parser.c
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 14:03:51 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 14:03:51 +0000
commit5b2648b536885ad6f33ebe7aa947789a0a7547c6 (patch)
treef6d7977b416a57c306727c9365f16b91b5d6305e /carg_parser.c
parentAdding debian version 1.6~pre3-1. (diff)
downloadlzlib-5b2648b536885ad6f33ebe7aa947789a0a7547c6.tar.xz
lzlib-5b2648b536885ad6f33ebe7aa947789a0a7547c6.zip
Merging upstream version 1.6~pre4.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'carg_parser.c')
-rw-r--r--carg_parser.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/carg_parser.c b/carg_parser.c
index 1dfcb2b..80e60c1 100644
--- a/carg_parser.c
+++ b/carg_parser.c
@@ -176,7 +176,8 @@ static char parse_short_option( struct Arg_parser * const ap,
if( index < 0 )
{
- add_error( ap, "invalid option -- " ); add_error( ap, code_str );
+ add_error( ap, "invalid option -- '" ); add_error( ap, code_str );
+ add_error( ap, "'" );
return 1;
}
@@ -191,8 +192,8 @@ static char parse_short_option( struct Arg_parser * const ap,
{
if( !arg || !arg[0] )
{
- add_error( ap, "option requires an argument -- " );
- add_error( ap, code_str );
+ add_error( ap, "option requires an argument -- '" );
+ add_error( ap, code_str ); add_error( ap, "'" );
return 1;
}
++*argindp; cind = 0;