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 | 347e6ac31e4cdfff7351744733c99d67af59edad (patch) | |
tree | 2faad4eb28535da88df2c4d5f16c492c6f7743dc /dom/media/webrtc/RTCCertificate.cpp | |
parent | b728af02255cd35bf061f2ea11e2c028108d8b4a (diff) | |
parent | cb71415364c1653cbabf63d1edeb8fbd28554652 (diff) | |
download | UXP-347e6ac31e4cdfff7351744733c99d67af59edad.tar UXP-347e6ac31e4cdfff7351744733c99d67af59edad.tar.gz UXP-347e6ac31e4cdfff7351744733c99d67af59edad.tar.lz UXP-347e6ac31e4cdfff7351744733c99d67af59edad.tar.xz UXP-347e6ac31e4cdfff7351744733c99d67af59edad.zip |
Merge pull request #757 from trav90/buildsystem-work
RTCCertificate.cpp: output truncated before the last format character
Diffstat (limited to 'dom/media/webrtc/RTCCertificate.cpp')
-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 3f778bcbb..9f5e27c56 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'; |