summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/OlyUtility.cpp')
-rw-r--r--[-rwxr-xr-x]daemon/OlyUtility.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/daemon/OlyUtility.cpp b/daemon/OlyUtility.cpp
index ec852df..c72b0d1 100755..100644
--- a/daemon/OlyUtility.cpp
+++ b/daemon/OlyUtility.cpp
@@ -197,7 +197,7 @@ const char* OlyUtility::getFilePart(const char* path) {
197 return path; 197 return path;
198 } 198 }
199 199
200 return (const char*)((int)last_sep + 1); 200 return last_sep++;
201} 201}
202 202
203// getPathPart may modify the contents of path 203// getPathPart may modify the contents of path
@@ -209,7 +209,8 @@ char* OlyUtility::getPathPart(char* path) {
209 if (last_sep == NULL) { 209 if (last_sep == NULL) {
210 return 0; 210 return 0;
211 } 211 }
212 *(char*)((int)last_sep + 1) = 0; 212 last_sep++;
213 *last_sep = 0;
213 214
214 return (path); 215 return (path);
215} 216}