[Sv1-commits] SF.net SVN: sv1: [423] sonic-visualiser/trunk/plugin/plugins/SamplePlayer. cpp
Brought to you by:
cannam
From: <ca...@us...> - 2006-10-30 16:49:47
|
Revision: 423 http://svn.sourceforge.net/sv1/?rev=423&view=rev Author: cannam Date: 2006-10-30 08:49:42 -0800 (Mon, 30 Oct 2006) Log Message: ----------- ... Modified Paths: -------------- sonic-visualiser/trunk/plugin/plugins/SamplePlayer.cpp Modified: sonic-visualiser/trunk/plugin/plugins/SamplePlayer.cpp =================================================================== --- sonic-visualiser/trunk/plugin/plugins/SamplePlayer.cpp 2006-10-30 12:44:45 UTC (rev 422) +++ sonic-visualiser/trunk/plugin/plugins/SamplePlayer.cpp 2006-10-30 16:49:42 UTC (rev 423) @@ -235,7 +235,9 @@ return 0; } else { - return strdup("Sample directory does not exist, leaving unchanged"); + char *buffer = (char *)malloc(strlen(value) + 80); + sprintf(buffer, "Sample directory \"%s\" does not exist, leaving unchanged", value); + return buffer; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |