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