summaryrefslogtreecommitdiff
path: root/upb/pb
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2015-06-04 13:07:43 -0700
committerJosh Haberman <jhaberman@gmail.com>2015-06-04 13:07:43 -0700
commit19a973a85ef5a2eaf1ca59d09ec2d6e972c0cd24 (patch)
tree4c94177912ba195508e488b1b1e8fda853385394 /upb/pb
parente5bcdc2a3fdc0c38bf09a596efd951d5aaab1148 (diff)
Fixes from Google-internal.
Diffstat (limited to 'upb/pb')
-rw-r--r--upb/pb/textprinter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/upb/pb/textprinter.c b/upb/pb/textprinter.c
index b772af3..269881b 100644
--- a/upb/pb/textprinter.c
+++ b/upb/pb/textprinter.c
@@ -112,7 +112,7 @@ bool putf(upb_textprinter *p, const char *fmt, ...) {
/* Run once to get the length of the string. */
va_copy(args_copy, args);
- len = vsprintf(NULL, fmt, args_copy);
+ len = _upb_vsnprintf(NULL, 0, fmt, args_copy);
va_end(args_copy);
/* + 1 for NULL terminator (vsprintf() requires it even if we don't). */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback