Skip to content
Snippets Groups Projects
Commit e96dc46d authored by Piotr Caban's avatar Piotr Caban Committed by Michael Stefaniuc
Browse files

msvcrt: Fix misleading indentation in gets.


Signed-off-by: default avatarPiotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
(cherry picked from commit a44794af)
Signed-off-by: default avatarMichael Stefaniuc <mstefani@winehq.org>
parent 2370bbfb
No related branches found
No related tags found
No related merge requests found
......@@ -4714,9 +4714,11 @@ char * CDECL MSVCRT_gets(char *buf)
MSVCRT__lock_file(MSVCRT_stdin);
for(cc = MSVCRT__fgetc_nolock(MSVCRT_stdin); cc != MSVCRT_EOF && cc != '\n';
cc = MSVCRT__fgetc_nolock(MSVCRT_stdin))
if(cc != '\r') *buf++ = (char)cc;
cc = MSVCRT__fgetc_nolock(MSVCRT_stdin))
{
if(cc != '\r')
*buf++ = (char)cc;
}
*buf = '\0';
TRACE("got '%s'\n", buf_start);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment