Debug1() was being called like this:
Debug1( format_bufr );
but if format_bufr contains any %s or other % arguments (such as when
processing a smb.conf file containing % macros) then smbd dies a
horrible death.
The quick fix is to use:
Debug1( "%s", format_bufr);
(This used to be commit
5ae04012819ae3e63102d6875088ef00c27492b4)
if( '\n' == msg[i] )
{
format_bufr[format_pos] = '\0';
if( '\n' == msg[i] )
{
format_bufr[format_pos] = '\0';
+ Debug1( "%s", format_bufr );