diff options
| author | Markus Uhlin <markus@nifty-networks.net> | 2025-10-17 02:16:57 +0200 |
|---|---|---|
| committer | Markus Uhlin <markus@nifty-networks.net> | 2025-10-17 02:16:57 +0200 |
| commit | c66b147ddf6727b735e819116d7ab659bd7506a4 (patch) | |
| tree | 9afe58c4aff0a241b2092f6a5a3b8bdbf7646338 | |
| parent | 1e559f41e4175899669f1b624fd950db04f40c4f (diff) | |
jsave_journalentry: replaced system()
| -rw-r--r-- | FICS/obsproc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FICS/obsproc.c b/FICS/obsproc.c index 8c7194c..d537f48 100644 --- a/FICS/obsproc.c +++ b/FICS/obsproc.c @@ -45,6 +45,7 @@ #include "command.h" #include "comproc.h" #include "config.h" +#include "copyfile.h" #include "eco.h" #include "ficsmain.h" #include "formula.h" @@ -1826,8 +1827,7 @@ jsave_journalentry(int p, char save_spot, int p1, char from_spot, char *to_file) name_to, save_spot); unlink(fname2); - msnprintf(command, sizeof command, "cp %s %s", fname, fname2); - if (system(command)) { // XXX + if (!fics_copyfile(fname, fname2)) { pprintf(p, "System command in jsave_journalentry failed!\n"); pprintf(p, "Please report this to an admin.\n"); fprintf(stderr, "FICS: System command failed in " |
