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
mpim-sw
cdo
Commits
d46a1209
Commit
d46a1209
authored
Dec 14, 2010
by
Uwe Schulzweida
Browse files
readline: filter carrage return
parent
816e2e36
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
d46a1209
2010-12-14 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* readline: filter carrage return '\r' [report: Christian Steger]
2010-12-13 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* setclonlatbox: bug fix for 1x1 grids [report: Angelika Heil]
...
...
src/readline.c
View file @
d46a1209
...
...
@@ -23,6 +23,7 @@ int readline(FILE *fp, char *line, int len)
while
(
(
ichar
=
fgetc
(
fp
))
!=
EOF
)
{
if
(
ichar
==
'\r'
)
break
;
if
(
ichar
==
'\n'
)
break
;
line
[
ipos
++
]
=
ichar
;
if
(
ipos
>=
len
)
...
...
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