Unofficial Patches to elm2.2
Piercarlo Grandi
pcg at aber-cs.UUCP
Tue Jan 9 06:41:09 AEST 1990
In article <1566 at aber-cs.UUCP> pcg at 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 at nsfnet-relay.ac.uk
Dept of CS, UCW Aberystwyth | UUCP: ...!mcvax!ukc!aber-cs!pcg
Penglais, Aberystwyth SY23 3BZ, UK | INET: pcg at cs.aber.ac.uk
More information about the Comp.sources.bugs
mailing list