diff options
author | Josh Haberman <jhaberman@gmail.com> | 2015-06-04 13:07:43 -0700 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2015-06-04 13:07:43 -0700 |
commit | 19a973a85ef5a2eaf1ca59d09ec2d6e972c0cd24 (patch) | |
tree | 4c94177912ba195508e488b1b1e8fda853385394 /upb/pb | |
parent | e5bcdc2a3fdc0c38bf09a596efd951d5aaab1148 (diff) |
Fixes from Google-internal.
Diffstat (limited to 'upb/pb')
-rw-r--r-- | upb/pb/textprinter.c | 2 |
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). */ |