aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/src/functions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mhmake/src/functions.cpp')
-rw-r--r--tools/mhmake/src/functions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mhmake/src/functions.cpp b/tools/mhmake/src/functions.cpp
index 5b59044c7..6ba64c3c1 100644
--- a/tools/mhmake/src/functions.cpp
+++ b/tools/mhmake/src/functions.cpp
@@ -622,10 +622,10 @@ string mhmakefileparser::f_strip(const string & Arg) const
{
string::const_iterator pFirst=Arg.begin();
string::const_iterator pLast=Arg.end();
- while (strchr(" \t",*pFirst) && pFirst!=pLast) pFirst++;
+ while (strchr(" \t\r\n",*pFirst) && pFirst!=pLast) pFirst++;
if (pFirst==pLast)
return "";
- while (strchr(" \t",*(--pLast)));
+ while (strchr(" \t\r\n",*(--pLast)));
pLast++;
return Arg.substr(pFirst-Arg.begin(),pLast-pFirst);
}