summaryrefslogtreecommitdiffstats
path: root/src/tntfs.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-03-28 09:12:38 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2011-03-28 09:12:38 +0200
commit02e3edf762d05ec4aacb348eb550f35ee1558a9f (patch)
tree5587b7e8c42eb60cd59a1db7823a46682ea84bef /src/tntfs.c
parent87a42aeb971f0be3285425f2140a1ed19c387302 (diff)
Fix to deal with ncurses 5.8 API violation, newwin(0,0,0,0) doesn't create a new full-screen window anymore.
Diffstat (limited to 'src/tntfs.c')
-rw-r--r--src/tntfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tntfs.c b/src/tntfs.c
index 6bf89e0..0309b13 100644
--- a/src/tntfs.c
+++ b/src/tntfs.c
@@ -45,7 +45,7 @@
#ifdef HAVE_NCURSES
static void dump_NTFS_ncurses(disk_t *disk_car, const partition_t *partition, const unsigned char *buffer_bs, const unsigned char *buffer_backup_bs)
{
- WINDOW *window=newwin(0,0,0,0); /* full screen */
+ WINDOW *window=newwin(LINES, COLS, 0, 0); /* full screen */
keypad(window, TRUE); /* Need it to get arrow key */
aff_copy(window);
wmove(window,4,0);