Delete wrappers for snprintf and vsnprintf

Bug: webrtc:6424
Change-Id: I99373dc86e25caff20111408b104ff5dafa7b711
Reviewed-on: https://webrtc-review.googlesource.com/c/106322
Commit-Queue: Niels Moller <nisse@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25210}
This commit is contained in:
Niels Möller
2018-10-16 15:14:15 +02:00
committed by Commit Bot
parent 3100fc1f05
commit aba0633aaf
15 changed files with 36 additions and 82 deletions

View File

@ -19,9 +19,6 @@
#include "examples/peerconnection/server/data_socket.h"
#include "examples/peerconnection/server/utils.h"
#include "rtc_base/stringencode.h"
#include "rtc_base/stringutils.h"
using rtc::sprintfn;
// Set to the peer id of the originator when messages are being
// exchanged between peers, but set to the id of the receiving peer
@ -98,7 +95,7 @@ std::string ChannelMember::GetEntry() const {
// name, 11-digit int, 1-digit bool, newline, null
char entry[kMaxNameLength + 15];
sprintfn(entry, sizeof(entry), "%s,%d,%d\n",
snprintf(entry, sizeof(entry), "%s,%d,%d\n",
name_.substr(0, kMaxNameLength).c_str(), id_, connected_);
return entry;
}