From 0b38368b599f80c3afc1de95c0f1f2a15054c730 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 2 Feb 2021 19:11:32 -0700 Subject: [PATCH] xor: fix -x and 0x fixes #4 --- xor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xor.c b/xor.c index 64e706e..1bb135f 100644 --- a/xor.c +++ b/xor.c @@ -10,11 +10,11 @@ #include int main(int argc, char* argv[]) { - int radix = 10; + int radix = 0; int arg; int c; - while ((c = getopt(argc, argv, "a")) != -1) { + while ((c = getopt(argc, argv, "ax")) != -1) { switch (c) { case 'x': radix = 16;