fix typo in prev. commit
[ardour.git] / libs / ardour / plugin_manager.cc
index 11b34de209f6f93627ffce7eb8af1cf5a534f28e..9ffab34a18afbef7e8f167f351b1057543667ce0 100644 (file)
 #include <sys/types.h>
 #include <cstdio>
 #include <cstdlib>
-#include <fstream>
 
 #include <glib.h>
-#include <pbd/gstdio_compat.h>
+#include "pbd/gstdio_compat.h"
 
 #ifdef HAVE_LRDF
 #include <lrdf.h>
@@ -49,7 +48,6 @@
 #include <cstring>
 #endif //LXVST_SUPPORT
 
-#include <pbd/gstdio_compat.h>
 #include <glibmm/miscutils.h>
 #include <glibmm/pattern.h>
 #include <glibmm/fileutils.h>
@@ -270,7 +268,7 @@ PluginManager::refresh (bool cache_only)
                        string fn = Glib::build_filename (ARDOUR::user_cache_directory(), VST_BLACKLIST);
                        if (Glib::file_test (fn, Glib::FILE_TEST_EXISTS)) {
                                gchar *bl = NULL;
-                               if (g_file_get_contents(fn.c_str (), contents, NULL, NULL)) {
+                               if (g_file_get_contents(fn.c_str (), &bl, NULL, NULL)) {
                                        PBD::info << _("VST Blacklist:") << "\n" << bl << "-----" << endmsg;
                                        g_free (bl);
                                }