r21740: this fixes the real cause of the large log files we had. The problem
authorAndrew Tridgell <tridge@samba.org>
Wed, 7 Mar 2007 10:00:14 +0000 (10:00 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:49:21 +0000 (14:49 -0500)
commitd20102d363f4b9214e29296ad8ec45c8d95614b5
tree8e98903e17eb59c2f331f32990fec202660b5d68
parent9aaa19319718a5a8fcc1df066cbce67eaa3431d8
r21740: this fixes the real cause of the large log files we had. The problem
was we were not checking the result of a convert_string() call, and it
was giving -1. We then passed -1 to fwrite() on stdout, which on aix
and macosx wrote all of available memory to stdout :)

To fix this, replace non-printing chars with ? in d_printf if the
string cannot be converted
source/lib/util/dprintf.c