summaryrefslogtreecommitdiffstats
path: root/mbbsd/friend.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-11-15 07:03:42 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-11-15 07:03:42 +0800
commite644996aa66e0e3f1ab9c14ef3135bfde2dd5912 (patch)
tree112623d73caa364e2cd30842f5f8f0163dc384b4 /mbbsd/friend.c
parentf6e922eff16029374e8853e1c71469861c5d8997 (diff)
downloadpttbbs-e644996aa66e0e3f1ab9c14ef3135bfde2dd5912.tar
pttbbs-e644996aa66e0e3f1ab9c14ef3135bfde2dd5912.tar.gz
pttbbs-e644996aa66e0e3f1ab9c14ef3135bfde2dd5912.tar.bz2
pttbbs-e644996aa66e0e3f1ab9c14ef3135bfde2dd5912.tar.lz
pttbbs-e644996aa66e0e3f1ab9c14ef3135bfde2dd5912.tar.xz
pttbbs-e644996aa66e0e3f1ab9c14ef3135bfde2dd5912.tar.zst
pttbbs-e644996aa66e0e3f1ab9c14ef3135bfde2dd5912.zip
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1336 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/friend.c')
-rw-r--r--mbbsd/friend.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mbbsd/friend.c b/mbbsd/friend.c
index ab9f1076..6d7ed3f5 100644
--- a/mbbsd/friend.c
+++ b/mbbsd/friend.c
@@ -333,9 +333,8 @@ friend_edit(int type)
if (type == FRIEND_ALOHA || type == FRIEND_POST) {
if (dashf(fpath)) {
- snprintf(genbuf, sizeof(genbuf),
- "/bin/cp %s %s.old", fpath, fpath);
- system(genbuf);
+ sprintf(genbuf,"%s.old",fpath);
+ Copy(fpath, genbuf);
}
}
dirty = 0;