Commit e315738b authored by gnomus's avatar gnomus
Browse files

Merge branch 'master' into 'master'

using printf to avoid \n for pwd input message

newline after "Please enter Password: " looks strange
parents 0e62272c 586fa66c
...@@ -8,7 +8,7 @@ int main() { ...@@ -8,7 +8,7 @@ int main() {
char *input_str = NULL; char *input_str = NULL;
char *password = "23door42\n"; char *password = "23door42\n";
puts("Please enter Password: "); printf("Please enter Password: ");
ret = getline(&input_str, &nbytes, stdin); ret = getline(&input_str, &nbytes, stdin);
if (ret == -1) { if (ret == -1) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment