diff options
Diffstat (limited to 'lib/libcurses/newwin.c')
-rw-r--r-- | lib/libcurses/newwin.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libcurses/newwin.c b/lib/libcurses/newwin.c index afc90cf..3273817 100644 --- a/lib/libcurses/newwin.c +++ b/lib/libcurses/newwin.c @@ -158,7 +158,7 @@ __makenew(nl, nc, by, bx, sub) register WINDOW *win; register __LINE *lp; int i; - + #ifdef DEBUG __CTRACE("makenew: (%d, %d, %d, %d)\n", nl, nc, by, bx); @@ -169,7 +169,7 @@ __makenew(nl, nc, by, bx, sub) __CTRACE("makenew: nl = %d\n", nl); #endif - /* + /* * Set up line pointer array and line space. */ if ((win->lines = malloc (nl * sizeof(__LINE *))) == NULL) { @@ -187,14 +187,14 @@ __makenew(nl, nc, by, bx, sub) /* * Allocate window space in one chunk. */ - if ((win->wspace = + if ((win->wspace = malloc(nc * nl * sizeof(__LDATA))) == NULL) { free(win->lines); free(win->lspace); free(win); return NULL; } - + /* * Point line pointers to line space, and lines themselves into * window space. |