comparison plugin/plugins/SamplePlayer.cpp @ 197:11cacfe5d127

...
author Chris Cannam
date Mon, 30 Oct 2006 16:49:42 +0000
parents a9c3ba1777e1
children 65311fb86166
comparison
equal deleted inserted replaced
196:28c38d1e5141 197:11cacfe5d127
233 } 233 }
234 234
235 return 0; 235 return 0;
236 236
237 } else { 237 } else {
238 return strdup("Sample directory does not exist, leaving unchanged"); 238 char *buffer = (char *)malloc(strlen(value) + 80);
239 sprintf(buffer, "Sample directory \"%s\" does not exist, leaving unchanged", value);
240 return buffer;
239 } 241 }
240 } 242 }
241 243
242 return strdup("Unknown configure key"); 244 return strdup("Unknown configure key");
243 } 245 }