msvcrt: Fix misleading indentation in gets.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Piotr Caban 2018-03-01 15:30:57 +01:00 committed by Alexandre Julliard
parent 5ed6fd9ade
commit a44794af67
1 changed files with 5 additions and 3 deletions

View File

@ -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);