diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-12-10 09:16:08 -0800 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-12-10 09:16:08 -0800 |
commit | 25537c3d3b9b68af91573dec39d1f46c3d97f735 (patch) | |
tree | 3f2ea6207a28fe9610d767dd78fb24d17f858ce0 /src/base/string/split.c | |
parent | f4aef385bdd41b02ef58b5366fa9318ecdc6e37e (diff) |
Checkin: small sprawling updates
Small touches to multiple locations in base.
Nothing major
Diffstat (limited to 'src/base/string/split.c')
-rw-r--r-- | src/base/string/split.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/string/split.c b/src/base/string/split.c index 56029e1..ead4c5b 100644 --- a/src/base/string/split.c +++ b/src/base/string/split.c @@ -18,7 +18,7 @@ string·split(string s, byte* tok) for(vlong i = 0; i < sL - tokL; i++){ if((tokL == 1 && s[i] == tokL) || !mem·compare(s + i, tokL, tok)){ - mem·bufpush(fields, string·makelen(s + start, i - start)); + mem·bufpush(fields, string·nmake(s + start, i - start)); if(fields[mem·buflen(fields) - 1] == nil) goto cleanup; start = i + tokL; @@ -26,7 +26,7 @@ string·split(string s, byte* tok) } } - mem·bufpush(fields, string·makelen(s + start, sL - start)); + mem·bufpush(fields, string·nmake(s + start, sL - start)); return fields; |