summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index d1936f7..2f05d7c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -103,7 +103,8 @@ static void BarMainGetLoginCredentials (BarSettings_t *settings,
char passBuf[100];
BarUiMsg (settings, MSG_QUESTION, "Password: ");
BarReadlineStr (passBuf, sizeof (passBuf), input, BAR_RL_NOECHO);
- write (STDIN_FILENO, "\n", 1);
+ /* write missing newline */
+ puts ("");
settings->password = strdup (passBuf);
}
}