mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-24 00:50:37 +08:00
Replace wcslen with math
This commit is contained in:
parent
1e9d41f2c1
commit
3efa2ad93b
|
@ -542,7 +542,7 @@ static expand_result_t expand_braces(const wcstring &instr, expand_flags_t flags
|
|||
}
|
||||
|
||||
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;
|
||||
item_begin = brace_begin + 1;
|
||||
for (const wchar_t *pos = (brace_begin + 1); true; pos++) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user