diff options
| -rw-r--r-- | FICS/obsproc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/FICS/obsproc.c b/FICS/obsproc.c index 5c1e7ec..fed36bf 100644 --- a/FICS/obsproc.c +++ b/FICS/obsproc.c @@ -1899,9 +1899,7 @@ jsave_history(int p, char save_spot, int p1, int from, char *to_file) save_spot); unlink(jfname); - msnprintf(command, sizeof command, "cp %s %s", - HistoryFname, jfname); - if (system(command)) { // XXX: A little messy, but works + if (fics_copyfile(HistoryFname, jfname)) { pprintf(p, "System command in jsave_history " "failed!\n"); pprintf(p, "Please report this to an admin.\n"); |
