X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilccore%2Fsilclog.c;fp=lib%2Fsilccore%2Fsilclog.c;h=cc74119d5f987fd20fec34cac9e3e73df5ab72da;hb=bd55cc45d56189099bcca8ea62af7e67c38ce329;hp=d866ecc0c52309e0297ef8b1c5fcccaa2feb9af7;hpb=89815db5540f4c3ea6cf7724a43fbb6009735d46;p=silc.git diff --git a/lib/silccore/silclog.c b/lib/silccore/silclog.c index d866ecc0..cc74119d 100644 --- a/lib/silccore/silclog.c +++ b/lib/silccore/silclog.c @@ -20,8 +20,11 @@ /* * $Id$ * $Log$ - * Revision 1.1 2000/06/27 11:36:55 priikone - * Initial revision + * Revision 1.2 2000/07/03 05:53:58 priikone + * Fixed file purging bug. The purging should work now ok. + * + * Revision 1.1.1.1 2000/06/27 11:36:55 priikone + * Importet from internal CVS/Added Log headers. * * */ @@ -81,7 +84,7 @@ void silc_log_output(const char *filename, unsigned int maxsize, fseek(fp, (off_t)0L, SEEK_SET); /* Purge? */ - if (maxsize >= filelen) + if (filelen >= maxsize) unlink(filename); } }