summaryrefslogtreecommitdiff
path: root/src/cli.h
diff options
context:
space:
mode:
authorjakob <jakob@memeware.net>2017-04-01 15:47:28 -0400
committerjakob <jakob@memeware.net>2017-04-01 15:47:28 -0400
commit5ac05edbb64b89741728ba006b0ce681a5d51595 (patch)
treed31d0f396181821bb5bd40fffd6e4c92bb025f7c /src/cli.h
parent06ef3f15929b4de343f4f749bade08f6b4783d3a (diff)
Fixed segmentation fault on invalid paths, cleaned up code
Diffstat (limited to 'src/cli.h')
-rw-r--r--src/cli.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cli.h b/src/cli.h
index 8e16020..cf7a535 100644
--- a/src/cli.h
+++ b/src/cli.h
@@ -33,12 +33,12 @@ enum {
/* Structure for storing options set from the command-line. */
struct params {
- int mode; /* Current mode of operation. */
- int game; /* Which encryption keys to use. */
- bool verbose; /* Whether or not to output progress messages. */
+ int mode; /* Current mode of operation. */
+ int game; /* Which encryption keys to use. */
+ bool verbose; /* Whether or not to output progress messages. */
int vararg_index; /* Start index of paths in argv. */
- char *out; /* Path to extract files to. */
- size_t out_len; /* Length of the output path string. */
+ char *out; /* Path to extract files to. */
+ size_t out_len; /* Length of the output path string. */
};
/* Returns a params structure parsed from `argv`. */