Commit 13ef83d8 authored by Chris Cantwell's avatar Chris Cantwell

Quick fix to remove trailing slash on input filenames on FldToVtk.

parent 776d16ce
......@@ -44,6 +44,10 @@ int main(int argc, char *argv[])
for (int n = 1; n < argc; ++n)
{
string fname = std::string(argv[n]);
if (fname.substr(fname.length() - 1, 1) == "/")
{
fname = fname.substr(0, fname.length() - 1);
}
int fdot = fname.find_last_of('.');
if (fdot != std::string::npos)
{
......
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