fgerlits commented on a change in pull request #791:
URL: https://github.com/apache/nifi-minifi-cpp/pull/791#discussion_r435320821



##########
File path: libminifi/src/core/ProcessSession.cpp
##########
@@ -574,15 +589,16 @@ void ProcessSession::import(const std::string& source, 
std::vector<std::shared_p
           if (zlen < std::numeric_limits<int>::min() || zlen > 
std::numeric_limits<int>::max()) {
             logger_->log_error("narrowing conversion failed");
           }
-          const int len = zlen;
+          const bool foundDelimiter = (delimiterPos != end);
+          const int len = (includeDelimiter && foundDelimiter) ? zlen + 1 : 
zlen;

Review comment:
       done




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to