aboutsummaryrefslogtreecommitdiff
path: root/daemon/OlyUtility.cpp
diff options
context:
space:
mode:
authorDrew Richardson <drew.richardson@arm.com>2012-07-31 12:00:00 -0700
committerDrew Richardson <drew.richardson@arm.com>2014-12-19 15:29:29 -0800
commit5f9955b9c65967a7a62f7860295d8ac187c9ec11 (patch)
treef5c3a2b6025bf9f3e436b8de9ae9f67131fe854d /daemon/OlyUtility.cpp
parent3abe11d177c6c93fab66d04fd42d11452a0c508e (diff)
gator: Version 5.115.11
Signed-off-by: Drew Richardson <drew.richardson@arm.com>
Diffstat (limited to 'daemon/OlyUtility.cpp')
-rw-r--r--daemon/OlyUtility.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/daemon/OlyUtility.cpp b/daemon/OlyUtility.cpp
index ec852df..c72b0d1 100644
--- a/daemon/OlyUtility.cpp
+++ b/daemon/OlyUtility.cpp
@@ -197,7 +197,7 @@ const char* OlyUtility::getFilePart(const char* path) {
return path;
}
- return (const char*)((int)last_sep + 1);
+ return last_sep++;
}
// getPathPart may modify the contents of path
@@ -209,7 +209,8 @@ char* OlyUtility::getPathPart(char* path) {
if (last_sep == NULL) {
return 0;
}
- *(char*)((int)last_sep + 1) = 0;
+ last_sep++;
+ *last_sep = 0;
return (path);
}