From 956494767c5f2fef7b5672ba60532224ea608d39 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Thu, 10 Apr 2014 10:56:38 +0300 Subject: [PATCH] lolCase variables --- lib/draw/curses.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/draw/curses.c b/lib/draw/curses.c index 3582be5..3afd9bc 100644 --- a/lib/draw/curses.c +++ b/lib/draw/curses.c @@ -48,16 +48,16 @@ static void _bmDrawCursesDrawLine(int pair, int y, const char *format, ...) { static int ncols = 0; static char *buffer = NULL; - int new_ncols = curses.getmaxx(curses.stdscr); + int newNcols = curses.getmaxx(curses.stdscr); - if (new_ncols <= 0) + if (newNcols <= 0) return; - if (!buffer || new_ncols > ncols) { + if (!buffer || newNcols > ncols) { if (buffer) free(buffer); - ncols = new_ncols; + ncols = newNcols; if (!(buffer = calloc(1, ncols + 1))) return;