We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b1d7ba commit 698aaa2Copy full SHA for 698aaa2
src/codecs/music_wavpack.c
@@ -326,6 +326,10 @@ static void *WAVPACK_CreateFromFile(const char *file)
326
file2 = SDL_stack_alloc(char, len + 2);
327
if (!file2) src2 = NULL;
328
else {
329
+ /* this assumes 'file' is a good boy and has 'wv' as an extension.
330
+ * official wavpack command line tools do the same thing so I'm not
331
+ * doing anything extra. besides, the wavpack library validates the
332
+ * correction file, therefore, no harm done. */
333
SDL_memcpy(file2, file, len);
334
file2[len] = 'c';
335
file2[len + 1] = '\0';
0 commit comments