summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
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