summaryrefslogtreecommitdiffstats
path: root/src/chgtypen.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-01-01 18:44:44 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2012-01-01 18:44:44 +0100
commit7b769570102a1ef5323145123df86f22d2b97b13 (patch)
tree3fd7b0751ba95db9cbf58e8319a2c3d618bd5bc0 /src/chgtypen.c
parente4429ca8c24234160bd28c05ad00d89633879640 (diff)
Add WINDOW *window argument to get_string()
Diffstat (limited to 'src/chgtypen.c')
-rw-r--r--src/chgtypen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/chgtypen.c b/src/chgtypen.c
index 95bdece..2e81a20 100644
--- a/src/chgtypen.c
+++ b/src/chgtypen.c
@@ -112,8 +112,9 @@ static void change_part_type_ncurses(const disk_t *disk_car,partition_t *partiti
aff_part(stdscr,AFF_PART_ORDER|AFF_PART_STATUS,disk_car,partition);
screen_buffer_display(stdscr,"",menuType);
wmove(stdscr,LINES-2,0);
+ wclrtoeol(stdscr);
wprintw(stdscr,"New partition type [current %02x] ? ",partition->arch->get_part_type(partition));
- if (get_string(response, sizeof(response), NULL) > 0) {
+ if (get_string(stdscr, response, sizeof(response), NULL) > 0) {
int tmp_val = strtol(response, NULL, 16);
partition->arch->set_part_type(partition,tmp_val);
}