From b9a8951cf86214a3dcb430ae0d34e8d5dc1adb11 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Wed, 10 Jul 2019 20:44:35 +0100 Subject: Ensure log filenames are safe for writing. --- functions.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'functions.h') diff --git a/functions.h b/functions.h index 29ebff5..009a019 100644 --- a/functions.h +++ b/functions.h @@ -178,4 +178,7 @@ int setclientcodetime(char *code, struct clientcodes *clientcodes); // Return the timestamp that a given client last disconnected, or 0 on failure. int getclientcodetime(char *code, struct clientcodes *clientcodes); +// Replace any instances of "find" with "replace" in the string "str" +void replacechar(char *str, char find, char replace); + #endif -- cgit v1.2.3