Skip to content

Commit 77cb41c

Browse files
author
kai-ion
committed
allocator mismatch bug fix, change type using c_str()
1 parent 3498dce commit 77cb41c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aws-cpp-sdk-core/source/client/ClientConfiguration.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,12 +308,12 @@ void setConfigFromEnvOrProfile(ClientConfiguration &config)
308308
"1" /* default value */);
309309

310310
// Parse and set IMDS num attempts
311-
long attempts = std::stol(numAttemptsStr);
311+
long attempts = std::stol(numAttemptsStr.c_str());
312312
if (attempts >= 1) {
313313
config.imdsConfig.metadata_service_num_attempts = attempts;
314314
}
315315
// Parse and set IMDS timeout
316-
long timeout = std::stol(timeoutStr);
316+
long timeout = std::stol(timeoutStr.c_str());
317317
if (timeout >= 1) {
318318
config.imdsConfig.metadata_service_timeout = timeout;
319319
}

0 commit comments

Comments
 (0)