diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-09-08 15:42:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-08 15:42:16 +0200 |
commit | 47ea5ed5c663e1021d6965205df01654a674a2d0 (patch) | |
tree | 2faad4eb28535da88df2c4d5f16c492c6f7743dc | |
parent | a8a34ee748e8dc84ae159004ec58e58bebd0b522 (diff) | |
parent | a38ccc7b431331784fb1cba268039da1361d46d7 (diff) | |
download | uxp-47ea5ed5c663e1021d6965205df01654a674a2d0.tar.gz |
Merge pull request #757 from trav90/buildsystem-work
RTCCertificate.cpp: output truncated before the last format character
-rw-r--r-- | dom/media/webrtc/RTCCertificate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/media/webrtc/RTCCertificate.cpp b/dom/media/webrtc/RTCCertificate.cpp index 3f778bcbbd..9f5e27c560 100644 --- a/dom/media/webrtc/RTCCertificate.cpp +++ b/dom/media/webrtc/RTCCertificate.cpp @@ -74,7 +74,7 @@ private: char buf[sizeof(randomName) * 2 + 4]; PL_strncpy(buf, "CN=", 3); for (size_t i = 0; i < sizeof(randomName); ++i) { - snprintf(&buf[i * 2 + 3], 2, "%.2x", randomName[i]); + snprintf(&buf[i * 2 + 3], 3, "%.2x", randomName[i]); } buf[sizeof(buf) - 1] = '\0'; |