From: kub Date: Thu, 14 Jan 2021 22:48:08 +0000 (+0100) Subject: fix for config save, custom value types not written correctly X-Git-Tag: v2.00~619 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34c7e34f773081df017080a6a918579fccc88275;p=picodrive.git fix for config save, custom value types not written correctly --- 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; }