aboutsummaryrefslogtreecommitdiffstats
path: root/src/rotate.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rotate.c')
-rw-r--r--src/rotate.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rotate.c b/src/rotate.c
index 1a37d21..ae013f6 100644
--- a/src/rotate.c
+++ b/src/rotate.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.4 2008/03/03 06:22:51 james
+ * *** empty log message ***
+ *
* Revision 1.3 2008/03/03 06:20:14 james
* *** empty log message ***
*
@@ -57,7 +60,7 @@ rotate (char *file)
buf1 = malloc (i);
buf2 = malloc (i);
- for (i = NUM_FILES_TO_KEEP; i > 0; ++i)
+ for (i = NUM_FILES_TO_KEEP; i > 0; --i)
{
sprintf (buf1, "%s.%d", file, i - 1);
sprintf (buf2, "%s.%d", file, i);