mirror of
https://github.com/ceph/ceph
synced 2024-12-19 01:46:00 +00:00
Merge pull request #2929 from thesues/master
Fix libstriprados::stat, use strtoll insdead of strtol Reviewed-by: Loic Dachary <ldachary@redhat.com>
This commit is contained in:
commit
e4e7fe22bc
@ -542,7 +542,7 @@ int libradosstriper::RadosStriperImpl::stat(const std::string& soid, uint64_t *p
|
||||
std::string err;
|
||||
// this intermediate string allows to add a null terminator before calling strtol
|
||||
std::string strsize(bl.c_str(), bl.length());
|
||||
*psize = strict_strtol(strsize.c_str(), 10, &err);
|
||||
*psize = strict_strtoll(strsize.c_str(), 10, &err);
|
||||
if (!err.empty()) {
|
||||
lderr(cct()) << XATTR_SIZE << " : " << err << dendl;
|
||||
return -EINVAL;
|
||||
|
Loading…
Reference in New Issue
Block a user