summaryrefslogtreecommitdiffstats
path: root/apps/cmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/cmp.c')
-rw-r--r--apps/cmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/cmp.c b/apps/cmp.c
index 51dd971162..14c3a73866 100644
--- a/apps/cmp.c
+++ b/apps/cmp.c
@@ -2188,10 +2188,10 @@ static char *opt_str(void)
if (arg[0] == '\0') {
CMP_warn1("%s option argument is empty string, resetting option",
- opt_name());
+ opt_flag());
arg = NULL;
} else if (arg[0] == '-') {
- CMP_warn1("%s option argument starts with hyphen", opt_name());
+ CMP_warn1("%s option argument starts with hyphen", opt_flag());
}
return arg;
}