summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/fileio.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/fileio.cc')
-rw-r--r--Build/source/utils/asymptote/fileio.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/fileio.cc b/Build/source/utils/asymptote/fileio.cc
index 3aeb4cbe548..42eeefc27c6 100644
--- a/Build/source/utils/asymptote/fileio.cc
+++ b/Build/source/utils/asymptote/fileio.cc
@@ -138,6 +138,8 @@ void ifile::Read(string& val)
}
}
}
+ size_t pos=s.length()-1;
+ if(s[pos] == '\r') s.erase(pos,1);
val=whitespace+s;
}