From 4ef56581a946b45db02b6e180b3a2fde1873260e Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 1 Sep 2016 05:24:47 +0200 Subject: [PATCH] Bugfix --- configuration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration.c b/configuration.c index bbd5a3b453..59bf4bcf42 100644 --- a/configuration.c +++ b/configuration.c @@ -1792,7 +1792,7 @@ static bool config_load_file(const char *path, bool set_defaults, if (!path_settings[i].handle) continue; if (config_get_path(conf, path_settings[i].ident, tmp_str, sizeof(tmp_str))) - strlcpy(path_settings[i].ptr, tmp_str, sizeof(tmp_str)); + strlcpy(path_settings[i].ptr, tmp_str, PATH_MAX_LENGTH); } if (config_get_path(conf, "cheat_settings_path", tmp_str, sizeof(tmp_str)))