Skip to content

Commit

Permalink
Per #2673, remove m_strlen() entirely.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnHalleyGotway committed Oct 17, 2024
1 parent ff9df4c commit 2fe55ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libcode/vx_python3_utils/wchar_argv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,10 @@ for (int j=0; j<_argc; ++j) {
// we're using the len array here because
// we don't want to call m_strlen more than
// once on each argv value
if (_argv) len[j] = m_strlen(_argv[j]);
if (_argv) {
string arg_str = _argv[j];
len[j] = arg_str.length();
}

argv_len += len[j];

Expand Down

0 comments on commit 2fe55ca

Please sign in to comment.