In log_error(), log as much of %N "strings" as the buffer allows.
authorFabian Keil <fk@fabiankeil.de>
Mon, 26 Jul 2010 11:19:31 +0000 (11:19 +0000)
committerFabian Keil <fk@fabiankeil.de>
Mon, 26 Jul 2010 11:19:31 +0000 (11:19 +0000)
commitd4b6763af0519e68c88fef8cc04440be33aba40c
tree98f845031cd4541001a87456c829f838b44df4e7
parent290379eb090961676eec6dc842338c5059fa3213
In log_error(), log as much of %N "strings" as the buffer allows.

Previously we'd stop at the first nul byte which is pretty useless.

While at it, replace non-printable characters in %N "strings" with
their hex value so the result can't span multiple lines and \r's
don't cause a mess.
errlog.c