From 1344014cbdc92cd8db6dbb20a9547ea143d8ed20 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 4 Oct 2013 12:46:31 -0400 Subject: switch from MAXPATHLEN to PATH_MAX, and use not for portability --- gtk2_ardour/sfdb_ui.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour/sfdb_ui.cc') diff --git a/gtk2_ardour/sfdb_ui.cc b/gtk2_ardour/sfdb_ui.cc index 5f8564374e..4944ef41a0 100644 --- a/gtk2_ardour/sfdb_ui.cc +++ b/gtk2_ardour/sfdb_ui.cc @@ -26,8 +26,8 @@ #include #include +#include #include -#include #include #include @@ -1468,7 +1468,7 @@ SoundFileOmega::check_link_status (const Session* s, const vector& paths for (vector::const_iterator i = paths.begin(); i != paths.end(); ++i) { - char tmpc[MAXPATHLEN+1]; + char tmpc[PATH_MAX+1]; snprintf (tmpc, sizeof(tmpc), "%s/%s", tmpdir.c_str(), Glib::path_get_basename (*i).c_str()); -- cgit v1.2.3