diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-11-15 07:03:42 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-11-15 07:03:42 +0800 |
commit | e644996aa66e0e3f1ab9c14ef3135bfde2dd5912 (patch) | |
tree | 112623d73caa364e2cd30842f5f8f0163dc384b4 /mbbsd/friend.c | |
parent | f6e922eff16029374e8853e1c71469861c5d8997 (diff) | |
download | pttbbs-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.c | 5 |
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; |