From a640fdf78b2c3096bfc59c685b6df034ddf2225e Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Fri, 17 Oct 2025 02:25:39 +0200 Subject: jsave_history: replaced system() --- FICS/obsproc.c | 4 +--- 1 file changed, 1 insertion(+), 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"); -- cgit v1.2.3