aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2019-04-02 11:47:05 +1000
committerteor <teor@torproject.org>2019-04-02 11:47:05 +1000
commit965f0d891232f3ece13f8310c9c01f71ec55f25d (patch)
treeb4afb36ad3e47f8afb9058cd553ae10d02858c93 /src
parent583ed7c6ecde0c95184586d581f2cb1ac78e8c39 (diff)
parent809a3a748d5f0cbaa0357ec63388ed291fb7b0bd (diff)
downloadtor-965f0d891232f3ece13f8310c9c01f71ec55f25d.tar.gz
tor-965f0d891232f3ece13f8310c9c01f71ec55f25d.zip
Merge remote-tracking branch 'tor-github/pr/875'
Diffstat (limited to 'src')
-rw-r--r--src/lib/log/util_bug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/log/util_bug.c b/src/lib/log/util_bug.c
index b9dc296fc6..65ab7bc9c6 100644
--- 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 {