summaryrefslogtreecommitdiffstats
path: root/src/engine/NodeFactory.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-03-04 20:45:14 +0000
committerDavid Robillard <d@drobilla.net>2010-03-04 20:45:14 +0000
commitefca18acf1e17be9932b375347ce95f733c2dc59 (patch)
treed5bf359f287281fe9b2760fd7ec653f3ea5e3451 /src/engine/NodeFactory.cpp
parentf2d901fe0424bafa39b794117c9547e4969017c6 (diff)
downloadingen-efca18acf1e17be9932b375347ce95f733c2dc59.tar.gz
ingen-efca18acf1e17be9932b375347ce95f733c2dc59.tar.bz2
ingen-efca18acf1e17be9932b375347ce95f733c2dc59.zip
Use portable path construction.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2518 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/NodeFactory.cpp')
-rw-r--r--src/engine/NodeFactory.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine/NodeFactory.cpp b/src/engine/NodeFactory.cpp
index 87b54d81..5ff21c04 100644
--- a/src/engine/NodeFactory.cpp
+++ b/src/engine/NodeFactory.cpp
@@ -20,6 +20,7 @@
#include <dirent.h>
#include <float.h>
#include <cmath>
+#include <glibmm/miscutils.h>
#include "redlandmm/World.hpp"
#include "raul/log.hpp"
#include "raul/Atom.hpp"
@@ -223,7 +224,7 @@ NodeFactory::load_ladspa_plugins()
if (!strcmp(pfile->d_name, ".") || !strcmp(pfile->d_name, ".."))
continue;
- const string lib_path = dir +"/"+ pfile->d_name;
+ const string lib_path = Glib::build_filename(dir, pfile->d_name);
// Ignore stupid libtool files. Kludge alert.
if (lib_path.substr(lib_path.length()-3) == ".la")