From 34c7e34f773081df017080a6a918579fccc88275 Mon Sep 17 00:00:00 2001 From: kub Date: Thu, 14 Jan 2021 23:48:08 +0100 Subject: [PATCH] fix for config save, custom value types not written correctly --- platform/common/config_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/common/config_file.c b/platform/common/config_file.c index e69c3a28..2ebee0a4 100644 --- a/platform/common/config_file.c +++ b/platform/common/config_file.c @@ -131,7 +131,7 @@ int config_write(const char *fname) } } else if (me->generate_name != NULL) { - strncpy(line, me->generate_name(0, &dummy), sizeof(line)-1); + strncpy(line, me->generate_name(me->id, &dummy), sizeof(line)-1); line[sizeof(line)-1] = '\0'; goto write_line; } -- 2.39.5