sscanf isn't safe with strings that aren't null-terminated. In such case, create a local copy that is null-terminated first.
sscanf isn't safe with strings that aren't null-terminated. In such case, create a local copy that is null-terminated first.

TESTED=GYP_DEFINES=build_for_tool=memcheck gclient runhooks
ninja -C out/Debug/ libjingle_unittest
tools/valgrind-webrtc/webrtc_tests.sh --tool memcheck --test out/Debug/libjingle_unittest  --gtest_filter=Http*

R=noahric@google.com

Review URL: https://webrtc-codereview.appspot.com/1941004

Cr-Mirrored-From: https://chromium.googlesource.com/external/webrtc
Cr-Mirrored-Commit: 0dc0f172a3c3e2d6524ae4b67c0eafb1f661bbb2

sippet/talk,sippet/talk,sippet/talk,sippet/talk,sippet/talk