ref: 88d5948ca08c649e6bd78ae8e634a8c57e53f316
parent: 762a6325011ed30aa737ed4be0c22b7430f34366
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Jan 8 17:13:14 EST 2016
Truncate messages instead of aborting. Deciphering abort errors aren't fun.
--- a/parse/util.c
+++ b/parse/util.c
@@ -374,7 +374,8 @@
va_start(ap, fmt);
n = vsnprintf(buf, sz, fmt, ap);
- assert(n <= sz);
+ if (n >= sz)
+ n = sz;
va_end(ap);
return n;