aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2021-11-06 22:48:44 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2021-11-06 22:48:44 -0400
commit236ceeb996f490d24b54984ba0833f0d4606a3de (patch)
tree861c4d1dc173b4c08830479d3ff5ef130c41e7e0 /main.c
parentd7cb141a8ed922f2e88b1ea386a530bc293e428b (diff)
downloadjdtalkc-236ceeb996f490d24b54984ba0833f0d4606a3de.tar.gz
Parse -f option correctly
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index 820a710..07cdafd 100644
--- a/main.c
+++ b/main.c
@@ -163,6 +163,8 @@ int main(int argc, char *argv[]) {
}
if (ARG( "-f")) {
strcpy(format, option_value);
+ i++;
+ continue;
}
if (ARG( "-a")) {
if (!option_value) {