diff options
author | Luke Bratch <luke@bratch.co.uk> | 2019-07-10 20:44:35 +0100 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2019-07-10 20:44:35 +0100 |
commit | b9a8951cf86214a3dcb430ae0d34e8d5dc1adb11 (patch) | |
tree | f868ace1f3e1763279eb513a49c3fdee9d3c0fab /functions.h | |
parent | 22a4f361329ed4e303e2f1bdce9edf49e70970f3 (diff) |
Ensure log filenames are safe for writing.
Diffstat (limited to 'functions.h')
-rw-r--r-- | functions.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |