From c66b147ddf6727b735e819116d7ab659bd7506a4 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Fri, 17 Oct 2025 02:16:57 +0200 Subject: jsave_journalentry: replaced system() --- FICS/obsproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'FICS') 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 " -- cgit v1.2.3