Mercurial > hg > svcore
diff plugin/plugins/SamplePlayer.cpp @ 197:11cacfe5d127
...
author | Chris Cannam |
---|---|
date | Mon, 30 Oct 2006 16:49:42 +0000 |
parents | a9c3ba1777e1 |
children | 65311fb86166 |
line wrap: on
line diff
--- a/plugin/plugins/SamplePlayer.cpp Tue Oct 24 11:13:41 2006 +0000 +++ b/plugin/plugins/SamplePlayer.cpp Mon Oct 30 16:49:42 2006 +0000 @@ -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; } }