aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/helper
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/helper')
-rw-r--r--src/org/traccar/helper/Log.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/helper/Log.java b/src/org/traccar/helper/Log.java
index 667f669fe..224a497e8 100644
--- a/src/org/traccar/helper/Log.java
+++ b/src/org/traccar/helper/Log.java
@@ -243,7 +243,7 @@ public final class Log {
s.append("*");
} else {
file = element.getFileName();
- s.append(file.substring(0, file.length() - 5)); // remove ".java"
+ s.append(file, 0, file.length() - 5); // remove ".java"
count -= 1;
}
s.append(":").append(element.getLineNumber());