summaryrefslogtreecommitdiffhomepage
path: root/Kernel/Sources/Utils.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Sources/Utils.cxx')
-rw-r--r--Kernel/Sources/Utils.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/Kernel/Sources/Utils.cxx b/Kernel/Sources/Utils.cxx
index b152888b..12e2e2a8 100644
--- a/Kernel/Sources/Utils.cxx
+++ b/Kernel/Sources/Utils.cxx
@@ -48,15 +48,14 @@ namespace Kernel
Size rt_string_len(const Char* ptr)
{
- if (!ptr)
+ if (*ptr == 0)
return 0;
SizeT cnt = 0;
- while (*ptr != (Char)0)
+ while (ptr[cnt] != (Char)0)
{
- ++ptr;
- ++cnt;
+ cnt++;
}
return cnt;