Subj : Debugging MakeNL To : All From : andrew clarke Date : Fri Jul 27 2018 01:25:02 Here's the bug: -+- makenl.c 2012/10/14 15:24:21 1.14 +++ makenl.c 2013/01/30 21:58:10 1.15 @@ -1,4 +1,4 @@ -/* $Id: makenl.c,v 1.14 2012/10/14 15:24:21 ozzmosis Exp $ */ +/* $Id: makenl.c,v 1.15 2013/01/30 21:58:10 ajleary Exp $ */ #include #include @@ -189,7 +189,7 @@ mklog(LOG_INFO, "Cmdline: %s", cmdline_to_str(argv)); mklog(LOG_INFO, "Using '%s' in '%s'", CfgFile, CurDir); - for (OldWeeks = 3; OldWeeks >= 0; OldWeeks--) + for (OldWeeks = 7; OldWeeks >= 0; OldWeeks--) { searchdow(NewExtWDay, -7 * OldWeeks + 6, &SplitTimePtr); sprintf(OldExtensions[OldWeeks], "%03d", The first iteration of the loop is writing to OldExtensions[7], but the array is too small in fileutil.c: char OldExtensions[4][MYMAXEXT]; This is now fixed in CVS. If everyone could build the latest version from CVS and test it, that would be great. --- GoldED+/BSD 1.1.5-b20110223-b20110223 * Origin: Blizzard of Ozz, Melbourne, Victoria, Australia (3:633/267) .