summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-09-08 15:42:16 +0200
committerGitHub <noreply@github.com>2018-09-08 15:42:16 +0200
commit47ea5ed5c663e1021d6965205df01654a674a2d0 (patch)
tree2faad4eb28535da88df2c4d5f16c492c6f7743dc
parenta8a34ee748e8dc84ae159004ec58e58bebd0b522 (diff)
parenta38ccc7b431331784fb1cba268039da1361d46d7 (diff)
downloaduxp-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.cpp2
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';