/* src/client/windows.c */
+#define _POSIX_C_SOURCE 200809L /* strnlen() */
#include "windows.h"
#include <ncurses.h> /* chtype, getmaxx(), getmaxy(), erase(), werase(),
* endwin(), delwin(), wnoutrefresh(), pnoutrefresh(),
free(wc->kb.kbs);
wc->kb.kbs = NULL;
}
- free(world.winDB.ids); /* NULL this too since add_win_to_winDB() checks */
- world.winDB.ids = NULL; /* for it to detect its first post-DB-purge round.*/
+ free(world.winDB.ids); /* NULL this since read_winconf_from_file() checks */
+ world.winDB.ids = NULL;/* for it to detect its first post-DB-purge round. */
free(world.winDB.wins);
free(world.winDB.order);
}