aboutsummaryrefslogtreecommitdiff
path: root/src/base/string/replace.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/string/replace.c')
-rw-r--r--src/base/string/replace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/string/replace.c b/src/base/string/replace.c
index 979c385..de3d397 100644
--- a/src/base/string/replace.c
+++ b/src/base/string/replace.c
@@ -6,8 +6,8 @@
void
string·replace(string s, byte* from, byte* to)
{
- vlong fromL = strlen(from);
- vlong toL = strlen(to);
+ vlong fromL = str·len(from);
+ vlong toL = str·len(to);
if (toL != fromL) { panicf("different sized replacement string not supported"); }
vlong l = string·len(s);