| Index: third_party/libjingle/files/talk/base/stringutils.h
|
| diff --git a/third_party/libjingle/files/talk/base/stringutils.h b/third_party/libjingle/files/talk/base/stringutils.h
|
| index 2ad071ae499bb8d1790783bd947d6bbd5b6507d1..03fb7492669f47825d3bacd9c312e246e6127f18 100644
|
| --- a/third_party/libjingle/files/talk/base/stringutils.h
|
| +++ b/third_party/libjingle/files/talk/base/stringutils.h
|
| @@ -200,15 +200,6 @@ size_t strcatn(CTYPE* buffer, size_t buflen,
|
| }
|
|
|
| template<class CTYPE>
|
| -size_t sprintfn(CTYPE* buffer, size_t buflen, const CTYPE* format, ...) {
|
| - va_list args;
|
| - va_start(args, format);
|
| - size_t len = vsprintfn(buffer, buflen, format, args);
|
| - va_end(args);
|
| - return len;
|
| -}
|
| -
|
| -template<class CTYPE>
|
| size_t vsprintfn(CTYPE* buffer, size_t buflen, const CTYPE* format,
|
| va_list args) {
|
| int len = vsnprintf(buffer, buflen, format, args);
|
| @@ -219,6 +210,15 @@ size_t vsprintfn(CTYPE* buffer, size_t buflen, const CTYPE* format,
|
| return len;
|
| }
|
|
|
| +template<class CTYPE>
|
| +size_t sprintfn(CTYPE* buffer, size_t buflen, const CTYPE* format, ...) {
|
| + va_list args;
|
| + va_start(args, format);
|
| + size_t len = vsprintfn(buffer, buflen, format, args);
|
| + va_end(args);
|
| + return len;
|
| +}
|
| +
|
| ///////////////////////////////////////////////////////////////////////////////
|
| // Allow safe comparing and copying ascii (not UTF-8) with both wide and
|
| // non-wide character strings.
|
|
|