summaryrefslogtreecommitdiff
path: root/zap/source/any/str/strlen.c
diff options
context:
space:
mode:
Diffstat (limited to 'zap/source/any/str/strlen.c')
-rw-r--r--zap/source/any/str/strlen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zap/source/any/str/strlen.c b/zap/source/any/str/strlen.c
index e6e9019..e763701 100644
--- a/zap/source/any/str/strlen.c
+++ b/zap/source/any/str/strlen.c
@@ -8,6 +8,6 @@
zap_sz zap_strlen(char const * str) {
char const * const start = str;
- while (*str++);
+ while (*str++ != '\x0');
return (zap_sz)(str - start) - 0x1u;
}