Skip to content
Snippets Groups Projects
Commit c472ac4f authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Merge remote-tracking branch 'public/bug11233_diagnose'

parents a2b59dba 234dfb0c
No related branches found
No related tags found
No related merge requests found
o Minor features:
- When we encounter an unexpected CR in text that we're trying to
write to a file on Windows, log the name of the file. Should help
diagnosing bug 11233.
......@@ -2004,7 +2004,8 @@ write_str_to_file(const char *fname, const char *str, int bin)
#ifdef _WIN32
if (!bin && strchr(str, '\r')) {
log_warn(LD_BUG,
"We're writing a text string that already contains a CR.");
"We're writing a text string that already contains a CR to %s",
escaped(fname));
}
#endif
return write_bytes_to_file(fname, str, strlen(str), bin);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment