summaryrefslogtreecommitdiffstats
path: root/mbbsd/kaede.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/kaede.c')
-rw-r--r--mbbsd/kaede.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/kaede.c b/mbbsd/kaede.c
index 326bc427..55ea7024 100644
--- a/mbbsd/kaede.c
+++ b/mbbsd/kaede.c
@@ -80,7 +80,7 @@ Copy(char *src, char *dst)
char buf[8192];
fi=open(src, O_RDONLY);
if(fi<0) return -1;
- fo=open(dst, O_WRONLY);
+ fo=open(dst, O_WRONLY | O_TRUCT | O_CREAT);
if(fo<0) {close(fi); return -1;}
while((bytes=read(fi, buf, 8192))>0)
write(fo, buf, bytes);