Hi David,
--- newsyslog.c.bak Thu Oct 22 21:18:12 2009
+++ newsyslog.c Thu Oct 22 22:00:09 2009
@@ -756,6 +756,9 @@
char file1[MAXPATHLEN], file2[MAXPATHLEN], *suffix;
int numdays = ent-numlogs;
+ /* We start counting at 0 so reduce for correct maximum */
+
Hello,
Please review the proposed patch to fix the newsyslog problem.
Thanks,
David
$ diff -u newsyslog.c newsyslog.c.bak
--- newsyslog.c.bak Thu Oct 22 21:18:12 2009
+++ newsyslog.c Thu Oct 22 22:00:09 2009
@@ -756,6 +756,9 @@
char file1[MAXPATHLEN], file2[MAXPATHLEN], *suffix;