Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mad
concierge
Commits
586fa66c
Commit
586fa66c
authored
Jun 10, 2014
by
anthraxx
Browse files
using printf to avoid \n for pwd input message
parent
0e62272c
Changes
1
Hide whitespace changes
Inline
Side-by-side
challenge/challenge.c
View file @
586fa66c
...
...
@@ -8,7 +8,7 @@ int main() {
char
*
input_str
=
NULL
;
char
*
password
=
"23door42
\n
"
;
p
uts
(
"Please enter Password: "
);
p
rintf
(
"Please enter Password: "
);
ret
=
getline
(
&
input_str
,
&
nbytes
,
stdin
);
if
(
ret
==
-
1
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment