summaryrefslogtreecommitdiffstats
path: root/mbbsd/record.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-24 00:31:08 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-24 00:31:08 +0800
commitaf0559d83afbcc141db57d0b0db31d73a96f312d (patch)
tree8d9e9dd35db3065941f9a3d556583d25785f2ede /mbbsd/record.c
parent17fe33bb02e6723b89e69e0d09b440f9f70d9f40 (diff)
downloadpttbbs-af0559d83afbcc141db57d0b0db31d73a96f312d.tar
pttbbs-af0559d83afbcc141db57d0b0db31d73a96f312d.tar.gz
pttbbs-af0559d83afbcc141db57d0b0db31d73a96f312d.tar.bz2
pttbbs-af0559d83afbcc141db57d0b0db31d73a96f312d.tar.lz
pttbbs-af0559d83afbcc141db57d0b0db31d73a96f312d.tar.xz
pttbbs-af0559d83afbcc141db57d0b0db31d73a96f312d.tar.zst
pttbbs-af0559d83afbcc141db57d0b0db31d73a96f312d.zip
fix blackhole
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1604 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/record.c')
-rw-r--r--mbbsd/record.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/record.c b/mbbsd/record.c
index 01b9fb15..17f8b482 100644
--- a/mbbsd/record.c
+++ b/mbbsd/record.c
@@ -567,7 +567,7 @@ do_append(char *fpath, fileheader_t * record, int size)
if(fstat(fd, &st)!=-1)
fsize = st.st_size;
- lseek(fd, (fsize / size) * size, SEEK_CUR); // avoid offset
+ lseek(fd, (fsize / size) * size, SEEK_SET); // avoid offset
safewrite(fd, record, size);