projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
10a9185
)
isspace
author
Robin Gareus
<robin@gareus.org>
Wed, 1 Jun 2016 17:19:09 +0000
(19:19 +0200)
committer
Robin Gareus
<robin@gareus.org>
Wed, 1 Jun 2016 17:19:09 +0000
(19:19 +0200)
libs/ardour/lv2_plugin.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/lv2_plugin.cc
b/libs/ardour/lv2_plugin.cc
index 5b97b6833315a59048515978a9054f4406bcc90e..9e253a359fb12f9487f1d10e0148e3ebc238f6a5 100644
(file)
--- a/
libs/ardour/lv2_plugin.cc
+++ b/
libs/ardour/lv2_plugin.cc
@@
-17,6
+17,7
@@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include <cctype>
#include <string>
#include <vector>
#include <limits>
#include <string>
#include <vector>
#include <limits>
@@
-238,11
+239,7
@@
log_vprintf(LV2_Log_Handle /*handle*/,
char* str = NULL;
const int ret = g_vasprintf(&str, fmt, args);
/* strip trailing whitespace */
char* str = NULL;
const int ret = g_vasprintf(&str, fmt, args);
/* strip trailing whitespace */
- while (strlen (str) > 0
- && ( str[strlen (str) - 1] == '\n'
- || str[strlen (str) - 1] == '\r'
- || str[strlen (str) - 1] == ' '
- || str[strlen (str) - 1] == '\t')) {
+ while (strlen (str) > 0 && isspace (str[strlen (str) - 1])) {
str[strlen (str) - 1] = '\0';
}
if (strlen (str) == 0) {
str[strlen (str) - 1] = '\0';
}
if (strlen (str) == 0) {