diff options
| author | Markus Uhlin <markus@nifty-networks.net> | 2025-10-17 02:25:39 +0200 |
|---|---|---|
| committer | Markus Uhlin <markus@nifty-networks.net> | 2025-10-17 02:25:39 +0200 |
| commit | a640fdf78b2c3096bfc59c685b6df034ddf2225e (patch) | |
| tree | 892eff7aff90729bf6d5f3f22953e3c37077e21b | |
| parent | af999923c1d2a9392173b6046ec579075b52b158 (diff) | |
jsave_history: replaced system()
| -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"); |
