summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/ardour/vst_info_file.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/ardour/vst_info_file.cc b/libs/ardour/vst_info_file.cc
index b076c42227..d58b7a94a5 100644
--- a/libs/ardour/vst_info_file.cc
+++ b/libs/ardour/vst_info_file.cc
@@ -259,14 +259,14 @@ read_string (FILE *fp)
return 0;
}
- if (strlen (buf) < MAX_STRING_LEN) {
- if (strlen (buf)) {
- buf[strlen (buf)-1] = 0;
- }
+ if (strlen (buf)) {
+ /* strip lash char here: '\n',
+ * since VST-params cannot be longer than 127 chars.
+ */
+ buf[strlen (buf)-1] = 0;
return strdup (buf);
- } else {
- return 0;
}
+ return 0;
}
/** Read an integer value from a line in fp into n,