Refactor conf_parse_bool()
* Increase size argument for strncmp() comparisons by one to include the terminating null-character (otherwise "yesfoo" would be parsed as "yes", "nobar" as "no"). * Pass destination address as an additional argument and return success/failure status to allow for better error handling. * Temporarily remove error handling (will be fixed later). Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
@@ -462,7 +462,7 @@ struct pad {
|
||||
|
||||
/* Notification bar definition. */
|
||||
struct nbar {
|
||||
int show; /* display or hide the notify-bar */
|
||||
unsigned show; /* display or hide the notify-bar */
|
||||
int cntdwn; /* warn when time left before next app
|
||||
becomes lesser than cntdwn */
|
||||
char datefmt[BUFSIZ]; /* format for displaying date */
|
||||
|
||||
Reference in New Issue
Block a user