Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7c4ce418
Commit
7c4ce418
authored
Nov 14, 1998
by
David A. Cuthbert
Committed by
Alexandre Julliard
Nov 14, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gets() fixes.
parent
eb2788f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
crtdll.c
misc/crtdll.c
+14
-7
No files found.
misc/crtdll.c
View file @
7c4ce418
...
...
@@ -665,13 +665,20 @@ INT32 __cdecl CRTDLL_fflush(LPVOID stream)
*/
LPSTR
__cdecl
CRTDLL_gets
(
LPSTR
buf
)
{
char
*
ret
;
/* BAD, for the whole WINE process blocks... just done this way to test
* windows95's ftp.exe.
*/
ret
=
gets
(
buf
);
TRACE
(
crtdll
,
"got %s
\n
"
,
ret
);
return
ret
;
int
cc
;
LPSTR
buf_start
=
buf
;
/* BAD, for the whole WINE process blocks... just done this way to test
* windows95's ftp.exe.
*/
for
(
cc
=
fgetc
(
stdin
);
cc
!=
EOF
&&
cc
!=
'\n'
;
cc
=
fgetc
(
stdin
))
if
(
cc
!=
'\r'
)
*
buf
++
=
(
char
)
cc
;
*
buf
=
'\0'
;
TRACE
(
crtdll
,
"got '%s'
\n
"
,
buf_start
);
return
buf_start
;
}
...
...
Write
Preview
Markdown
is supported
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