summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-04-17 00:38:25 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-04-17 00:38:25 +0800
commit31fbb20a65e289952f077114815c98701c75707f (patch)
tree243cd631b51bb7d170aaad97cbb2d1cb6c9efea6
parent093514f131646bb73995b36862e2c1780f6968bd (diff)
downloadpttbbs-31fbb20a65e289952f077114815c98701c75707f.tar
pttbbs-31fbb20a65e289952f077114815c98701c75707f.tar.gz
pttbbs-31fbb20a65e289952f077114815c98701c75707f.tar.bz2
pttbbs-31fbb20a65e289952f077114815c98701c75707f.tar.lz
pttbbs-31fbb20a65e289952f077114815c98701c75707f.tar.xz
pttbbs-31fbb20a65e289952f077114815c98701c75707f.tar.zst
pttbbs-31fbb20a65e289952f077114815c98701c75707f.zip
fix bug
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@120 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c
index cbb042f2..b7a485ad 100644
--- a/mbbsd/cache.c
+++ b/mbbsd/cache.c
@@ -1,4 +1,4 @@
-/* $Id: cache.c,v 1.16 2002/04/16 14:55:31 in2 Exp $ */
+/* $Id: cache.c,v 1.17 2002/04/16 16:38:25 in2 Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -1056,6 +1056,7 @@ int updatemdcache(const char *CPATH, const char *fpath)
/* md is full? */
close(targetfd);
unlink(cpath);
+ lseek(sourcefd, 0, SEEK_SET);
return sourcefd;
}
close(sourcefd);