ref: f23b8e9bfa60397d47741e21520bca1349fbb0a3
parent: bc74414d6c74d9750f723afe229224bb38bf609e
author: Olav Sørensen <olav.sorensen@live.no>
date: Mon Nov 30 12:10:01 EST 2020
Fix potential missing NUL terminator on output filename during sample save
--- a/src/pt2_sample_saver.c
+++ b/src/pt2_sample_saver.c
@@ -73,6 +73,9 @@
samplerChunk_t samplerChunk;
mptExtraChunk_t mptExtraChunk;
+ memset(tmpBuffer, 0, sizeof (tmpBuffer));
+ memset(fileName, 0, sizeof (fileName));
+
const moduleSample_t *s = &song->samples[editor.currSample];
if (s->length == 0)