Merge remote-tracking branch 'tor-github/pr/875'

This commit is contained in:
teor 2019-04-02 11:47:05 +10:00
commit 965f0d8912
No known key found for this signature in database
GPG Key ID: 10FEAA0E7075672A

View File

@ -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 {