diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2012-01-12 10:25:09 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2012-01-12 10:25:09 +0100 |
commit | b5664c83c02e0074d0211a0c48eeb1c3bc0fedb5 (patch) | |
tree | 9792c97c2afb56aa1f95394345ff947b88651f28 /src | |
parent | 0e94717e54157c750ee2a393016d66adb3c275e4 (diff) | |
download | pianobar-b5664c83c02e0074d0211a0c48eeb1c3bc0fedb5.tar.gz pianobar-b5664c83c02e0074d0211a0c48eeb1c3bc0fedb5.tar.bz2 pianobar-b5664c83c02e0074d0211a0c48eeb1c3bc0fedb5.zip |
Eliminate concurrent use of (un-)buffered I/O
Closes #201
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } } |