mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-30 14:53:11 +00:00
Replace wcslen with math
This commit is contained in:
parent
1e9d41f2c1
commit
3efa2ad93b
1 changed files with 1 additions and 1 deletions
|
@ -542,7 +542,7 @@ static expand_result_t expand_braces(const wcstring &instr, expand_flags_t flags
|
||||||
}
|
}
|
||||||
|
|
||||||
length_preceding_braces = (brace_begin - in);
|
length_preceding_braces = (brace_begin - in);
|
||||||
length_following_braces = std::wcslen(brace_end) - 1;
|
length_following_braces = instr.size() - (brace_end - in) - 1;
|
||||||
tot_len = length_preceding_braces + length_following_braces;
|
tot_len = length_preceding_braces + length_following_braces;
|
||||||
item_begin = brace_begin + 1;
|
item_begin = brace_begin + 1;
|
||||||
for (const wchar_t *pos = (brace_begin + 1); true; pos++) {
|
for (const wchar_t *pos = (brace_begin + 1); true; pos++) {
|
||||||
|
|
Loading…
Reference in a new issue