Skip to content

Commit

Permalink
Release 1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Oct 30, 2020
1 parent 3ae7834 commit 0b38973
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 11 deletions.
14 changes: 14 additions & 0 deletions doc/changes.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,17 @@ <H2> Version 1.15 - 19 Dec 2002 </H2>
<LI>Small change to trigger mechanism in syndrum plugin.</LI>

</UL>

<H2> Version 1.16 - 6 Nov 2007 </H2>
<UL>

<LI>Remove -Werror from compile options in makefile.</LI>

<LI>Remove "local" part from install directories.</LI>

<LI>Small additional changes to makefile for robustness.</LI>

<LI>Replace strdup() with localStrdup() to avoid malloc/new
mismatch.</LI>

</UL>
2 changes: 1 addition & 1 deletion doc/overview.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<H1>Computer Music Toolkit (CMT) v1.15 Overview</H1>
<H1>Computer Music Toolkit (CMT) v1.16 Overview</H1>

<P>The Computer Music Toolkit (CMT) is a collection of <A
HREF="http://www.ladspa.org">LADSPA</A> plugins for use with software
Expand Down
19 changes: 14 additions & 5 deletions src/cmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@

/*****************************************************************************/

inline char *
localStrdup(const char * input) {
char * output = new char[strlen(input) + 1];
strcpy(output, input);
return output;
}

/*****************************************************************************/

CMT_Descriptor::
~CMT_Descriptor() {
if (Label)
Expand Down Expand Up @@ -89,11 +98,11 @@ CMT_Descriptor(unsigned long lUniqueID,
LADSPA_Deactivate_Function fDeactivate) {

UniqueID = lUniqueID;
Label = strdup(pcLabel);
Label = localStrdup(pcLabel);
Properties = iProperties;
Name = strdup(pcName);
Maker = strdup(pcMaker);
Copyright = strdup(pcCopyright);
Name = localStrdup(pcName);
Maker = localStrdup(pcMaker);
Copyright = localStrdup(pcCopyright);
PortCount = 0;
ImplementationData = poImplementationData;

Expand Down Expand Up @@ -158,7 +167,7 @@ addPort(LADSPA_PortDescriptor iPortDescriptor,
}

piNewPortDescriptors[lOldPortCount] = iPortDescriptor;
ppcNewPortNames[lOldPortCount] = strdup(pcPortName);
ppcNewPortNames[lOldPortCount] = localStrdup(pcPortName);
psNewPortRangeHints[lOldPortCount].HintDescriptor = iHintDescriptor;
psNewPortRangeHints[lOldPortCount].LowerBound = fLowerBound;
psNewPortRangeHints[lOldPortCount].UpperBound = fUpperBound;
Expand Down
8 changes: 3 additions & 5 deletions src/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,16 @@
#
# INSTALLATION DIRECTORIES
#
# Change this if you want to install somewhere else. In particularly
# you may wish to remove the middle "local/" part.
# Change this if you want to install somewhere else.

INSTALL_PLUGINS_DIR = /usr/local/lib/ladspa/
INSTALL_PLUGINS_DIR = /usr/lib/ladspa/

###############################################################################
#
# GENERAL
#

INCLUDES = -I/usr/local/include/
CFLAGS = $(INCLUDES) -Wall -Werror -O3 -fPIC
CFLAGS = $(INCLUDES) -Wall -O3 -fPIC
CXXFLAGS = $(CFLAGS)
PLUGIN_LIB = ../plugins/cmt.so

Expand Down

0 comments on commit 0b38973

Please sign in to comment.