Skip to content

Commit

Permalink
Fix libstriprados::remove, use strtoll insdead of strtol
Browse files Browse the repository at this point in the history
Signed-off-by: Dongmao Zhang <deanraccoon@gmail.com>
(cherry picked from commit 78a15ee)
  • Loading branch information
thesues authored and Sebastien Ponce committed Mar 10, 2015
1 parent 938e036 commit 5d423a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libradosstriper/RadosStriperImpl.cc
Expand Up @@ -560,7 +560,7 @@ int libradosstriper::RadosStriperImpl::remove(const std::string& soid)
std::string err;
// this intermediate string allows to add a null terminator before calling strtol
std::string strsize(bl2.c_str(), bl2.length());
uint64_t size = strict_strtol(strsize.c_str(), 10, &err);
uint64_t size = strict_strtoll(strsize.c_str(), 10, &err);
if (!err.empty()) {
lderr(cct()) << XATTR_SIZE << " : " << err << dendl;

Expand Down

0 comments on commit 5d423a5

Please sign in to comment.