diff options
author | staffcvs <> | 2008-03-03 06:26:05 +0000 |
---|---|---|
committer | staffcvs <> | 2008-03-03 06:26:05 +0000 |
commit | cf22eb443d1fa81bfdbfe8e25a585a527a476003 (patch) | |
tree | 0955a58f1ec11ed33a9b20318f678fb77c2c0fac /src/rotate.c | |
parent | 62af6821d25628f16085323b8492f6df090b23ca (diff) | |
download | sympathy-cf22eb443d1fa81bfdbfe8e25a585a527a476003.tar.gz sympathy-cf22eb443d1fa81bfdbfe8e25a585a527a476003.tar.bz2 sympathy-cf22eb443d1fa81bfdbfe8e25a585a527a476003.zip |
*** empty log message ***
Diffstat (limited to 'src/rotate.c')
-rw-r--r-- | src/rotate.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/rotate.c b/src/rotate.c index ae013f6..f7a66a6 100644 --- a/src/rotate.c +++ b/src/rotate.c @@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.5 2008/03/03 06:26:05 staffcvs + * *** empty log message *** + * * Revision 1.4 2008/03/03 06:22:51 james * *** empty log message *** * @@ -64,11 +67,11 @@ rotate (char *file) { sprintf (buf1, "%s.%d", file, i - 1); sprintf (buf2, "%s.%d", file, i); - rename (buf2, buf1); + rename (buf1, buf2); sprintf (buf1, "%s.%d.gz", file, i - 1); sprintf (buf2, "%s.%d.gz", file, i); - rename (buf2, buf1); + rename (buf1, buf2); } sprintf (buf1, "%s.%d", file, 0); |