summaryrefslogtreecommitdiff
path: root/util/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/util.c')
-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);
}