summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools.c b/tools.c
index ea0e41e..c9e94f4 100644
--- a/tools.c
+++ b/tools.c
@@ -125,6 +125,15 @@ string replaceString(string content, string search, string repl) {
return content;
}
+string getRecPath(const cRecording *rec) {
+ if (!rec)
+ return "";
+ string recPath = rec->FileName();
+ if (recPath.size() > 200)
+ recPath = recPath.substr(0, 199);
+ return recPath;
+}
+
/****************************************************************************************
* SPLTSTRING