From 55d5b620a4317a649a17e33cef3e3a82f3c5fcb9 Mon Sep 17 00:00:00 2001 From: "BADIM-PC\\Vadim" Date: Fri, 16 Mar 2018 08:54:13 +0300 Subject: [PATCH] stack overflow fix --- src/config.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/config.c b/src/config.c index 63b0541..9c19edc 100644 --- a/src/config.c +++ b/src/config.c @@ -352,13 +352,12 @@ static void save(Config* config) void initConfig(Config* config, tic_mem* tic, FileSystem* fs) { - *config = (Config) { - .tic = tic, - .save = save, - .reset = reset, - .fs = fs, - }; + config->tic = tic; + config->save = save; + config->reset = reset; + config->fs = fs; + } setDefault(config);