From 5ac05edbb64b89741728ba006b0ce681a5d51595 Mon Sep 17 00:00:00 2001 From: jakob Date: Sat, 1 Apr 2017 15:47:28 -0400 Subject: Fixed segmentation fault on invalid paths, cleaned up code --- src/cli.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/cli.h') 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`. */ -- cgit v1.3