Skip to content

cmStrLen: Fix length calculation with embedded NULs

Kyle Edwards requested to merge kyle.edwards/cmake:cmstrlen-fix into master

Search for a null terminator instead of blindly going by the length of the array. Use std::char_traits::length() if C++17 or later.

Edited by Brad King

Merge request reports