summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjacobkeeler <jacob.keeler@livioradio.com>2019-02-26 16:11:53 -0500
committerjacobkeeler <jacob.keeler@livioradio.com>2019-02-26 16:11:53 -0500
commit994cdb9b31aaac4d688014cdd1bdf5ff2b1970e1 (patch)
treed6d20c28488c3877ccb22f12b76b403d619550ec
parent146aa7a46a540cfd85a30f82bcec2783c9801ba7 (diff)
downloadsdl_core-feature/auth_token_protocol_payload.tar.gz
Increase auth_token size according to specfeature/auth_token_protocol_payload
-rw-r--r--src/components/protocol_handler/src/protocol_handler_impl.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/protocol_handler/src/protocol_handler_impl.cc b/src/components/protocol_handler/src/protocol_handler_impl.cc
index c09fbfe0d8..083e204ac3 100644
--- a/src/components/protocol_handler/src/protocol_handler_impl.cc
+++ b/src/components/protocol_handler/src/protocol_handler_impl.cc
@@ -418,8 +418,9 @@ void ProtocolHandlerImpl::SendStartSessionAck(
sync_primitives::AutoLock lock(auth_token_map_lock_);
auto it = auth_token_map_.find(policy_app_id);
if (it != auth_token_map_.end()) {
- char auth_token[256];
- strncpy(auth_token, it->second.c_str(), 255);
+ char auth_token[65536];
+ strncpy(auth_token, it->second.c_str(), 65535);
+ auth_token[sizeof(auth_token) - 1] = '\0';
bson_object_put_string(&params, strings::auth_token, auth_token);
}
}