Skip to content

Commit

Permalink
Fix #822: Synfig segfaults when building SynfigStudio
Browse files Browse the repository at this point in the history
  • Loading branch information
morevnaproject committed May 25, 2019
1 parent d4afe43 commit 02a02d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synfig-core/src/synfig/filesystem.cpp
Expand Up @@ -185,7 +185,7 @@ String FileSystem::fix_slashes(const String &filename)
{
String fixed = etl::cleanup_path(filename);
if (fixed == ".") fixed = "";
for(size_t i = 0; i < filename.size(); ++i)
for(size_t i = 0; i < fixed.size(); ++i)
if (fixed[i] == '\\') fixed[i] = '/';
return fixed;
}
Expand Down

0 comments on commit 02a02d7

Please sign in to comment.