diff options
author | Rashed Abdel-Tawab <rashed@linux.com> | 2017-10-26 22:24:22 -0700 |
---|---|---|
committer | Rashed Abdel-Tawab <rashed@linux.com> | 2017-12-05 17:25:44 -0800 |
commit | aa78e2ccbf1f57fe1bece2bc241efec9d2d30ad0 (patch) | |
tree | ba7fc725c7dde49a0fd3089d4d512c8b47503605 | |
parent | 657748c405183c852e95b26671a45ddc6541da18 (diff) | |
download | android_system_vold-aa78e2ccbf1f57fe1bece2bc241efec9d2d30ad0.tar.gz android_system_vold-aa78e2ccbf1f57fe1bece2bc241efec9d2d30ad0.tar.bz2 android_system_vold-aa78e2ccbf1f57fe1bece2bc241efec9d2d30ad0.zip |
vold: ntfs: Use strlcat
Clang now enforces length checking :/
Change-Id: I495b4cb2ee530e72b1084248f0549d63589523b0
-rw-r--r-- | fs/Ntfs.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/Ntfs.cpp b/fs/Ntfs.cpp index 1a69fc2..81d5d15 100644 --- a/fs/Ntfs.cpp +++ b/fs/Ntfs.cpp @@ -66,11 +66,11 @@ status_t Mount(const std::string& source, const std::string& target, bool ro, ownerUid, ownerGid, permMask, permMask); if (!executable) - strcat(mountData, ",noexec"); + strlcat(mountData, ",noexec", sizeof(mountData)); if (ro) - strcat(mountData, ",ro"); + strlcat(mountData, ",ro", sizeof(mountData)); if (remount) - strcat(mountData, ",remount"); + strlcat(mountData, ",remount", sizeof(mountData)); std::vector<std::string> cmd; cmd.push_back(kMountPath); |