summaryrefslogtreecommitdiffstats
path: root/src/edit.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/edit.c
parente4429ca8c24234160bd28c05ad00d89633879640 (diff)
Add WINDOW *window argument to get_string()
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/edit.c b/src/edit.c
index 0174baf..7be48f9 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -152,7 +152,7 @@ static void interface_editor_position(const disk_t *disk_car,uint64_t *lba)
case 'C':
sprintf(def, "%lu", position.cylinder);
mvwaddstr(stdscr,INTER_GEOM_Y, INTER_GEOM_X, "Enter the number of cylinders: ");
- if (get_string(response, sizeof(response), def) > 0) {
+ if (get_string(stdscr, response, sizeof(response), def) > 0) {
tmp_val = atol(response);
if (tmp_val < disk_car->geom.cylinders) {
position.cylinder = tmp_val;
@@ -164,7 +164,7 @@ static void interface_editor_position(const disk_t *disk_car,uint64_t *lba)
case 'H':
sprintf(def, "%u", position.head);
mvwaddstr(stdscr,INTER_GEOM_Y, INTER_GEOM_X, "Enter the number of heads: ");
- if (get_string(response, sizeof(response), def) > 0) {
+ if (get_string(stdscr, response, sizeof(response), def) > 0) {
tmp_val = atoi(response);
if (tmp_val < disk_car->geom.heads_per_cylinder) {
position.head = tmp_val;
@@ -176,7 +176,7 @@ static void interface_editor_position(const disk_t *disk_car,uint64_t *lba)
case 'S':
sprintf(def, "%u", position.sector);
mvwaddstr(stdscr,INTER_GEOM_Y, INTER_GEOM_X, "Enter the number of sectors per track: ");
- if (get_string(response, sizeof(response), def) > 0) {
+ if (get_string(stdscr, response, sizeof(response), def) > 0) {
tmp_val = atoi(response);
if (tmp_val > 0 && tmp_val <= disk_car->geom.sectors_per_head ) {
position.sector = tmp_val;