diff --git a/xroot_plugins/GrpcEndpoint.cpp b/xroot_plugins/GrpcEndpoint.cpp index 3baf7bea710e4a5b42a4f3ea46fa7200ec7bc0a5..a533fe31843d0aba6e350d9c922bcf826de5d9e8 100644 --- a/xroot_plugins/GrpcEndpoint.cpp +++ b/xroot_plugins/GrpcEndpoint.cpp @@ -23,7 +23,7 @@ std::string cta::grpc::Endpoint::getPath(const std::string &diskFileId) const { // diskFileId is sent to CTA as a uint64_t, but we store it as a decimal string, cf.: // XrdSsiCtaRequestMessage.cpp: request.diskFileID = std::to_string(notification.file().fid()); // Here we convert it back to make the namespace query: - uint64_t id = strtoul(diskFileId.c_str(), NULL, 0); + uint64_t id = strtoull(diskFileId.c_str(), NULL, 0); if(id == 0) return ("Invalid disk ID"); auto response = m_grpcClient->GetMD(eos::rpc::FILE, id, "");