Skip to content

Commit c1c87bc

Browse files
committed
rtlib: sanitize whitespace in src/rtlib/file_winputstr.c
1 parent df438e2 commit c1c87bc

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

src/rtlib/file_winputstr.c

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -4,54 +4,54 @@
44

55
FBCALL FB_WCHAR *fb_FileWstrInput( ssize_t chars, int fnum )
66
{
7-
FB_FILE *handle;
7+
FB_FILE *handle;
88
FB_WCHAR *dst;
9-
size_t len;
10-
int res = FB_RTERROR_OK;
9+
size_t len;
10+
int res = FB_RTERROR_OK;
1111

1212
fb_DevScrnInit_ReadWstr( );
1313

1414
FB_LOCK();
1515

16-
handle = FB_FILE_TO_HANDLE(fnum);
17-
if( !FB_HANDLE_USED(handle) )
18-
{
16+
handle = FB_FILE_TO_HANDLE(fnum);
17+
if( !FB_HANDLE_USED(handle) )
18+
{
1919
FB_UNLOCK();
2020
return NULL;
2121
}
2222

23-
dst = fb_wstr_AllocTemp( chars );
24-
if( dst != NULL )
25-
{
26-
ssize_t read_chars = 0;
27-
if( FB_HANDLE_IS_SCREEN(handle) )
28-
{
29-
while( read_chars != chars )
30-
{
31-
res = fb_FileGetDataEx( handle,
32-
0,
33-
(void *)&dst[read_chars],
34-
chars - read_chars,
35-
&len,
36-
TRUE,
37-
TRUE );
38-
if( res != FB_RTERROR_OK )
39-
break;
23+
dst = fb_wstr_AllocTemp( chars );
24+
if( dst != NULL )
25+
{
26+
ssize_t read_chars = 0;
27+
if( FB_HANDLE_IS_SCREEN(handle) )
28+
{
29+
while( read_chars != chars )
30+
{
31+
res = fb_FileGetDataEx( handle,
32+
0,
33+
(void *)&dst[read_chars],
34+
chars - read_chars,
35+
&len,
36+
TRUE,
37+
TRUE );
38+
if( res != FB_RTERROR_OK )
39+
break;
4040

41-
read_chars += len;
42-
}
43-
}
44-
else
45-
{
46-
res = fb_FileGetDataEx( handle,
47-
0,
48-
(void *)dst,
49-
chars,
50-
&len,
51-
TRUE,
52-
TRUE );
41+
read_chars += len;
42+
}
43+
}
44+
else
45+
{
46+
res = fb_FileGetDataEx( handle,
47+
0,
48+
(void *)dst,
49+
chars,
50+
&len,
51+
TRUE,
52+
TRUE );
5353
read_chars = chars;
54-
}
54+
}
5555

5656
if( res == FB_RTERROR_OK )
5757
{

0 commit comments

Comments
 (0)