summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-24 00:20:40 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-24 00:20:40 +0800
commit17fe33bb02e6723b89e69e0d09b440f9f70d9f40 (patch)
tree2e7a73acf988afea34766d7cb6e0577884dd7cc6 /mbbsd
parentefb5a6333d3fe1b4e9f3c744d6be6aaab27504e9 (diff)
downloadpttbbs-17fe33bb02e6723b89e69e0d09b440f9f70d9f40.tar
pttbbs-17fe33bb02e6723b89e69e0d09b440f9f70d9f40.tar.gz
pttbbs-17fe33bb02e6723b89e69e0d09b440f9f70d9f40.tar.bz2
pttbbs-17fe33bb02e6723b89e69e0d09b440f9f70d9f40.tar.lz
pttbbs-17fe33bb02e6723b89e69e0d09b440f9f70d9f40.tar.xz
pttbbs-17fe33bb02e6723b89e69e0d09b440f9f70d9f40.tar.zst
pttbbs-17fe33bb02e6723b89e69e0d09b440f9f70d9f40.zip
fix black hole
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1603 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/record.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/record.c b/mbbsd/record.c
index 64488842..01b9fb15 100644
--- a/mbbsd/record.c
+++ b/mbbsd/record.c
@@ -564,7 +564,7 @@ do_append(char *fpath, fileheader_t * record, int size)
}
flock(fd, LOCK_EX);
- if(fstat(fd, &st) )
+ if(fstat(fd, &st)!=-1)
fsize = st.st_size;
lseek(fd, (fsize / size) * size, SEEK_CUR); // avoid offset