diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2022-11-16 14:57:43 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2022-11-18 14:37:58 (GMT) |
commit | 830eed374d540ebd643cd9385546838804c07160 (patch) | |
tree | 3c71403a089cfa791665d381a80f21902dfa11bd /Source/CPack | |
parent | c6368a23feae261bfce4beaf0b4fca4c5c56677e (diff) | |
download | CMake-830eed374d540ebd643cd9385546838804c07160.zip CMake-830eed374d540ebd643cd9385546838804c07160.tar.gz CMake-830eed374d540ebd643cd9385546838804c07160.tar.bz2 |
CMake: fix sizeof string literal violations
Diffstat (limited to 'Source/CPack')
-rw-r--r-- | Source/CPack/cmCPackDragNDropGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackDragNDropGenerator.cxx b/Source/CPack/cmCPackDragNDropGenerator.cxx index 0579066..68e7ba3 100644 --- a/Source/CPack/cmCPackDragNDropGenerator.cxx +++ b/Source/CPack/cmCPackDragNDropGenerator.cxx @@ -451,7 +451,7 @@ int cmCPackDragNDropGenerator::CreateDMG(const std::string& src_dir, mountpoint_regex.find(attach_output.c_str()); std::string const temp_mount = mountpoint_regex.match(1); std::string const temp_mount_name = - temp_mount.substr(sizeof("/Volumes/") - 1); + temp_mount.substr(cmStrLen("/Volumes/")); // Remove dummy padding file so we have enough space on RW image ... std::ostringstream dummy_padding; |