AmendHub

Download (as of this amendment):

jcs

/

amend

/

amendments

/

182

settings: Re-zero tsettings before copying during 1->2 migration


jcs made amendment 182 about 1 month ago
--- settings.c Thu Oct 1 11:46:41 2026 +++ settings.c Thu Oct 1 16:06:11 2026 @@ -115,6 +115,8 @@ settings_load(void) SetFPos(pb.ioParam.ioRefNum, fsFromStart, 0); FSRead(pb.ioParam.ioRefNum, &rlen, &s1); + /* then copy over manually */ + memset(&tsettings, 0, sizeof(tsettings)); strlcpy(tsettings.author, s1.author, sizeof(tsettings.author)); tsettings.tabstop = s1.tabstop; tsettings.max_amendments = s1.max_amendments;