Mercurial > hg > svcore
changeset 197:11cacfe5d127
...
author | Chris Cannam |
---|---|
date | Mon, 30 Oct 2006 16:49:42 +0000 |
parents | 28c38d1e5141 |
children | 4c5c62784211 |
files | plugin/plugins/SamplePlayer.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
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; } }