pcg@aber-cs.UUCP (Piercarlo Grandi) (01/09/90)
In article <1566@aber-cs.UUCP> pcg@cs.aber.ac.uk (Piercarlo Grandi) writes: This is a patch to elm2.2 PL14 for improved sorting functionality, speed, etc... Here it is: I omitted a line by mistake in the following patch, for file 'src/newmbox.c': *** 598,603 **** --- 619,635 ---- } else rewind(mailfile); + + { + register unsigned excess; + + for (excess = count; excess < max_headers; excess++) + if (headers[excess] != NULL) + { + (void) free(headers[excess]); + headers[excess] = NULL; + } + } /* Sort folder *before* we establish the current message, so that * the current message is based on the post-sort order. This should read: + + { + register unsigned excess; + + for (excess = count; excess < max_headers; excess++) + if (headers[excess] != NULL) + { + (void) free(headers[excess]); + headers[excess] = NULL; + } +++++ if (current > count) current = count; + } -- Piercarlo "Peter" Grandi | ARPA: pcg%cs.aber.ac.uk@nsfnet-relay.ac.uk Dept of CS, UCW Aberystwyth | UUCP: ...!mcvax!ukc!aber-cs!pcg Penglais, Aberystwyth SY23 3BZ, UK | INET: pcg@cs.aber.ac.uk