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

@ -18,11 +18,8 @@
#include "examples/peerconnection/client/defaults.h"
#include "rtc_base/checks.h"
#include "rtc_base/logging.h"
#include "rtc_base/stringutils.h"
#include "third_party/libyuv/include/libyuv/convert_from.h"
using rtc::sprintfn;
namespace {
//
@ -150,7 +147,7 @@ GtkMainWnd::GtkMainWnd(const char* server,
autoconnect_(autoconnect),
autocall_(autocall) {
char buffer[10];
sprintfn(buffer, sizeof(buffer), "%i", port);
snprintf(buffer, sizeof(buffer), "%i", port);
port_ = buffer;
}