Commit d46a1209 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

readline: filter carrage return

parent 816e2e36
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]
......
......@@ -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 )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment