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:
Loic Dachary 2014-11-17 11:28:07 +01:00
commit e4e7fe22bc

View File

@ -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;