diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-11-21 15:24:44 -0500 |
---|---|---|
committer | Tom Joseph <tomjoseph@in.ibm.com> | 2018-11-28 14:37:56 +0000 |
commit | 77ff3fe596532f965d86691f20031babcede775d (patch) | |
tree | 86d07c7c1b6ebbd958780e2d5125960ee7af0c7d /user_channel/passwd_mgr.hpp | |
parent | b975c4051e969bdb23ef18fa97224ee4d80882c3 (diff) | |
download | phosphor-host-ipmid-77ff3fe596532f965d86691f20031babcede775d.tar.gz phosphor-host-ipmid-77ff3fe596532f965d86691f20031babcede775d.zip |
users: gcc8: fix stringop-truncation warnings
Avoid errors such as:
| ../git/user_channel/user_mgmt.cpp: In member function 'ipmi_ret_t ipmi::UserAccess::setUserName(const uint8_t&, const char*)':
| ../git/user_channel/user_mgmt.cpp:793:21: error: 'char* strncpy(char*, const char*, size_t)' specified bound 16 equals destination size [-Werror=stringop-truncation]
| std::strncpy(reinterpret_cast<char*>(userInfo->userName),
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| userNameInChar, ipmiMaxUserName);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Change-Id: Ie6ceea49366dc3f3918f31dec3c792276c3a206f
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'user_channel/passwd_mgr.hpp')
0 files changed, 0 insertions, 0 deletions