shithub: ft²

Download patch

ref: e60c3df6b2e87d26d2a971a85255728b65a678ad
parent: f75ed687deda27988f9a566c35efdc074ecf84ed
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sat Jul 24 15:28:20 EDT 2021

config: ensure the size of the config_t struct is correct

--- a/src/ft2_config.c
+++ b/src/ft2_config.c
@@ -70,6 +70,7 @@
 {
 	lockMixerCallback();
 
+	assert(sizeof(config) == CONFIG_FILE_SIZE);
 	memcpy(&config, configBuffer, CONFIG_FILE_SIZE);
 
 	if (defaults)