fgerlits commented on code in PR #1953:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1953#discussion_r2032747543
##########
extensions/sftp/client/SFTPClient.cpp:
##########
@@ -719,8 +719,8 @@ bool SFTPClient::listDirectory(const std::string& path,
bool follow_symlinks,
});
LIBSSH2_SFTP_ATTRIBUTES attrs;
- std::vector<char> filename(4096U);
- std::vector<char> longentry(4096U);
+ std::array<char, utils::configuration::DEFAULT_BUFFER_SIZE> filename{};
+ std::array<char, utils::configuration::DEFAULT_BUFFER_SIZE> longentry{};
Review Comment:
good point, fixed in 0b5325cb43f304ea2e4f5333b14d2134682f2e8e
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]