summaryrefslogtreecommitdiffstats
path: root/src/fat_adv.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/fat_adv.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/fat_adv.c')
-rw-r--r--src/fat_adv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fat_adv.c b/src/fat_adv.c
index 1636344..67cb5a9 100644
--- a/src/fat_adv.c
+++ b/src/fat_adv.c
@@ -190,7 +190,7 @@ static int ask_root_directory(disk_t *disk_car, const partition_t *partition, co
const file_data_t *current_file;
const file_data_t *pos=dir_list;
WINDOW *window;
- window=newwin(0,0,0,0); /* full screen */
+ window=newwin(LINES, COLS, 0, 0); /* full screen */
aff_copy(window);
wmove(window,4,0);
aff_part(window,AFF_PART_ORDER|AFF_PART_STATUS,disk_car,partition);
@@ -881,7 +881,7 @@ static int analyse_dir_entries2(disk_t *disk_car,const partition_t *partition, c
#ifdef HAVE_NCURSES
static void fat32_dump_ncurses(disk_t *disk_car, const partition_t *partition, const upart_type_t upart_type, const unsigned char *orgboot, const unsigned char *newboot)
{
- 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);
@@ -2279,7 +2279,7 @@ int repair_FAT_table(disk_t *disk_car, partition_t *partition, const int verbose
unsigned int fat32_root_cluster=0;
int fat_damaged=0;
#ifdef HAVE_NCURSES
- WINDOW *window=newwin(0,0,0,0); /* full screen */
+ WINDOW *window=newwin(LINES, COLS, 0, 0); /* full screen */
aff_copy(window);
#endif
{