commit | f14143b21356b29850fb7746d619382832b28950 | [log] [tgz] |
---|---|---|
author | Peyton, Jonathan L <jonathan.l.peyton@intel.com> | Thu Feb 25 12:49:12 2021 -0600 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Apr 12 15:49:39 2021 -0700 |
tree | b65703448f5beeba648587d85a7d6aae3c0a59eb | |
parent | e3bdd7060683364b2ed41e3c37e5b7203a77ffdc [diff] |
[OpenMP] Fix incorrect KMP_STRLEN() macro The second argument to the strnlen_s(str, size) function should be sizeof(str) when str is a true array of characters with known size (instead of just a char*). Use type traits to determine if first parameter is a character array and use the correct size based on that trait. Differential Revision: https://reviews.llvm.org/D98209 GitOrigin-RevId: 2aebb7cb3c88b1446515563653c821e8165b3aaf