diff options
author | Vas Crabb <vas@vastheman.com> | 2017-03-03 14:15:13 +1100 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2017-03-03 14:18:58 +1100 |
commit | 28596c7161e07681c48082e1afbc34209eff8043 (patch) | |
tree | fe6bd746cbd532cb3a02d22e870cf2cc1bd161bf /src/lib | |
parent | adfc7be3490d40e94e884536ebf994169429da37 (diff) |
fix crash on excessive command-line options, clean up some tabulation, remove long-dead option
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/util/options.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util/options.h b/src/lib/util/options.h index b8a8aa8f9c8..47780652586 100644 --- a/src/lib/util/options.h +++ b/src/lib/util/options.h @@ -177,7 +177,7 @@ public: void mark_changed(const char *name); // misc - static const char *unadorned(int x = 0) { return s_option_unadorned[std::min(x, MAX_UNADORNED_OPTIONS)]; } + static const char *unadorned(int x = 0) { return s_option_unadorned[std::min(x, MAX_UNADORNED_OPTIONS - 1)]; } int options_count() const { return m_entrylist.count(); } protected: |