commit 965f0d891232f3ece13f8310c9c01f71ec55f25d
parent 583ed7c6ecde0c95184586d581f2cb1ac78e8c39
Author: teor <teor@torproject.org>
Date: Tue, 2 Apr 2019 11:47:05 +1000
Merge remote-tracking branch 'tor-github/pr/875'
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/log/util_bug.c b/src/lib/log/util_bug.c
@@ -117,7 +117,7 @@ tor_bug_occurred_(const char *fname, unsigned int line,
}
log_warn(LD_BUG, "%s:%u: %s: This line should not have been reached.%s",
fname, line, func, once_str);
- tor_snprintf(buf, sizeof(buf),
+ tor_asprintf(&buf,
"Line unexpectedly reached at %s at %s:%u",
func, fname, line);
} else {