Commit Graph
1 Commits
Author SHA1 Message Date
Philipp Joram 7473c59d05 Fix segfault when launching with unkown option
Bug:    When launching with an unkown option, ttysolitaire crashes with a
        segfault.

Reason: This is due to getopt_long() not knowing where to terminate the search
        for matching options in options[].

Fix:    Append an additional Element to options[] containing only zeroes. This
        is in compliance with the GNU docs. See `man getopt_long` for reference.
2015-11-25 20:47:33 +01:00