switch sprintf to snprintf (#2175)
switch sprintf to snprintf (#2175)

* switch sprintf to snprintf

* find correct sizeof output_pointer
aws/aws-sdk-cpp,aws/aws-sdk-cpp,aws/aws-sdk-cpp,aws/aws-sdk-cpp,aws/aws-sdk-cpp,aws/aws-sdk-cpp