diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-11-18 23:58:31 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-11-18 23:58:31 +0800 |
commit | c9998f2f6b3770d6b6455a96f148f0b53e63c780 (patch) | |
tree | 8768c2753d7452624e9af4627f09b1b091d3e7dc /mbbsd/kaede.c | |
parent | ff6f5bec17837748a52ad687cd8a6d3309459832 (diff) | |
download | pttbbs-c9998f2f6b3770d6b6455a96f148f0b53e63c780.tar pttbbs-c9998f2f6b3770d6b6455a96f148f0b53e63c780.tar.gz pttbbs-c9998f2f6b3770d6b6455a96f148f0b53e63c780.tar.bz2 pttbbs-c9998f2f6b3770d6b6455a96f148f0b53e63c780.tar.lz pttbbs-c9998f2f6b3770d6b6455a96f148f0b53e63c780.tar.xz pttbbs-c9998f2f6b3770d6b6455a96f148f0b53e63c780.tar.zst pttbbs-c9998f2f6b3770d6b6455a96f148f0b53e63c780.zip |
typo
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1352 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/kaede.c')
-rw-r--r-- | mbbsd/kaede.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/kaede.c b/mbbsd/kaede.c index 55ea7024..53723b3e 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 | O_TRUCT | O_CREAT); + fo=open(dst, O_WRONLY | O_TRUNC | O_CREAT); if(fo<0) {close(fi); return -1;} while((bytes=read(fi, buf, 8192))>0) write(fo, buf, bytes); |