summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorRyan Gonzalez <rymg19@gmail.com>2016-03-03 14:03:42 -0600
committerRyan Gonzalez <rymg19@gmail.com>2016-03-03 14:03:42 -0600
commite1967b76c1fdf21a0b8f27b608d43b5b6b3366bc (patch)
tree1f0b1493cb98e635f531cca50839c92f26bf1566 /util
parent6f479559c4aa6efaaa4352c70d1e7755d2267573 (diff)
downloadmc-e1967b76c1fdf21a0b8f27b608d43b5b6b3366bc.tar.gz
Fix odd "Unexpected argument" message
Diffstat (limited to 'util')
-rw-r--r--util/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/util.c b/util/util.c
index aa1ea77..dccc90b 100644
--- a/util/util.c
+++ b/util/util.c
@@ -175,7 +175,7 @@ int optnext(Optctx *ctx)
c = *ctx->curarg;
ctx->curarg++;
if (!optinfo(ctx, c, &take, &mand)) {
- printf("Unexpected argument %c\n", *ctx->curarg);
+ printf("Unexpected argument %c\n", c);
exit(1);
}