shithub: ft²

Download patch

ref: 812861d816be38fbd36ae323a6e23c33a1846e91
parent: 4dbde94aaa9d94f285aedc327a02cb12f422b791
author: Sigrid Solveig Haflínudóttir <[email protected]>
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)