summaryrefslogtreecommitdiff
path: root/upb/upb.c
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2015-06-03 14:52:46 -0700
committerJosh Haberman <jhaberman@gmail.com>2015-06-03 14:52:46 -0700
commite5bcdc2a3fdc0c38bf09a596efd951d5aaab1148 (patch)
tree3cbc06765d77bba866efc7623c044491b48f31af /upb/upb.c
parent6f30032183ccd20d7a7f031ebc9350f54179bba8 (diff)
parent97eeb570225bb2f1060f4eff18ba664e129767d2 (diff)
Merge branch 'master' into google-internal
Diffstat (limited to 'upb/upb.c')
-rw-r--r--upb/upb.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/upb/upb.c b/upb/upb.c
index c58d307..cee7f56 100644
--- a/upb/upb.c
+++ b/upb/upb.c
@@ -20,10 +20,10 @@ bool upb_dumptostderr(void *closure, const upb_status* status) {
return false;
}
-// Guarantee null-termination and provide ellipsis truncation.
-// It may be tempting to "optimize" this by initializing these final
-// four bytes up-front and then being careful never to overwrite them,
-// this is safer and simpler.
+/* Guarantee null-termination and provide ellipsis truncation.
+ * It may be tempting to "optimize" this by initializing these final
+ * four bytes up-front and then being careful never to overwrite them,
+ * this is safer and simpler. */
static void nullz(upb_status *status) {
const char *ellipsis = "...";
size_t len = strlen(ellipsis);
@@ -65,7 +65,7 @@ void upb_status_seterrf(upb_status *status, const char *fmt, ...) {
void upb_status_vseterrf(upb_status *status, const char *fmt, va_list args) {
if (!status) return;
status->ok_ = false;
- vsnprintf(status->msg, sizeof(status->msg), fmt, args);
+ _upb_vsnprintf(status->msg, sizeof(status->msg), fmt, args);
nullz(status);
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback