summaryrefslogtreecommitdiffstats
path: root/carg_parser.c
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 14:03:45 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 14:03:45 +0000
commit8e588bc047fbb5af60a8eb44f5e5715f035888fc (patch)
treecd40dee12f5e790ea1540b9151e2354b14c092ba /carg_parser.c
parentAdding upstream version 1.6~pre3. (diff)
downloadlzlib-8e588bc047fbb5af60a8eb44f5e5715f035888fc.tar.xz
lzlib-8e588bc047fbb5af60a8eb44f5e5715f035888fc.zip
Adding upstream version 1.6~pre4.upstream/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;