shithub: pt2-clone

Download patch

ref: bc74414d6c74d9750f723afe229224bb38bf609e
parent: 4d6376baddc42450a9ee0f5f862960fd0edd77ab
author: Olav Sørensen <olav.sorensen@live.no>
date: Mon Nov 30 12:07:09 EST 2020

Fix potential missing NUL terminator on output filename during .mod save

--- a/src/pt2_module_saver.c
+++ b/src/pt2_module_saver.c
@@ -130,6 +130,8 @@
 	int32_t i, j;
 	struct stat statBuffer;
 
+	memset(fileName, 0, sizeof (fileName));
+
 	if (config.modDot)
 	{
 		// extension.filename