Commit 8cfc4bfa authored by Alexander Danilov's avatar Alexander Danilov

Solver: fix database file parsing

We should trim spaces from the end of database line,
otherwise file names may be illegal.
parent aae43be4
......@@ -1345,6 +1345,9 @@ namespace INMOST
}
if( k == strlen(str) ) continue; //invalid line
for(l = 0; l < k; ++l) str[l] = tolower(str[l]);
l = (int)strlen(str)-1; // Right-trim string
while(l > 0 && isspace(str[l]) ) --l;
str[l+1] = 0;
l = k+1;
while(l < (int)strlen(str) && isspace(str[l]) ) ++l;
if( l == strlen(str) ) continue; //skip empty entry
......
Markdown is supported
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