lidavidm commented on code in PR #3399:
URL: https://github.com/apache/arrow-adbc/pull/3399#discussion_r2331581523
##########
c/driver_manager/adbc_driver_manager.cc:
##########
@@ -425,6 +438,8 @@ SearchPaths GetEnvPaths(const char_type* env_var) {
std::wstring path_var;
path_var.resize(required_size);
_wgetenv_s(&required_size, path_var.data(), required_size, env_var);
+ // Remove null terminator
+ path_var.resize(required_size - 1);
Review Comment:
Sorry, but I think a C++ dev should know this...
--
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]