summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/session.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/session.rs b/src/session.rs
index 30be94d..ab27a4f 100644
--- a/src/session.rs
+++ b/src/session.rs
@@ -347,6 +347,7 @@ impl Session {
for (i, response) in (*prompter)
.prompt(&username, &instruction, &prompts)
.into_iter()
+ .take(prompts.len())
.enumerate()
{
let ptr = strdup_string(&response);