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:
@ -10,8 +10,6 @@
|
||||
|
||||
#include "rtc_base/location.h"
|
||||
|
||||
#include "rtc_base/stringutils.h"
|
||||
|
||||
namespace rtc {
|
||||
|
||||
Location::Location(const char* function_name, const char* file_and_line)
|
||||
@ -31,7 +29,7 @@ Location& Location::operator=(const Location& other) {
|
||||
|
||||
std::string Location::ToString() const {
|
||||
char buf[256];
|
||||
sprintfn(buf, sizeof(buf), "%s@%s", function_name_, file_and_line_);
|
||||
snprintf(buf, sizeof(buf), "%s@%s", function_name_, file_and_line_);
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user