Fixing a memory corruption - and changing the way tX_midiin works. Not
[terminatorX.git] / terminatorX / src / tX_ladspa_class.cc
index 9601ef786d9d8bb4aa328f9e24684416e4c3c6d2..0557fca0db3c92ecf2d57638f470c67e54c8c082 100644 (file)
@@ -134,7 +134,7 @@ void LADSPA_Class::scandir(char *dirname) {
                if ((strcmp(entry->d_name, ".")==0) ||
                        (strcmp(entry->d_name, "..")==0)) continue;
                
-               filename = (char *) malloc (dirlen + strlen(entry->d_name) + 1 + needslash);
+               filename = (char *) malloc (dirlen + strlen(entry->d_name) + 10 + needslash);
                
                strcpy(filename, "file:");
                strcat(filename, dirname);