Valgrind + gcc -pedantic fixes

This commit is contained in:
Aaron Gutierrez
2020-06-12 18:38:03 -07:00
parent cddaf13050
commit 711e9a4042
4 changed files with 11 additions and 7 deletions

View File

@@ -27,7 +27,7 @@ void draw_status_line(ui_state *state) {
}
void draw_text(const char *text, ui_state *state) {
if (!text || strnlen(text, 1) == 0) return;
if (!text || text[0] == '\0') return;
mvaddch(state->curs_y, state->curs_x, *text);
++text;