1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

fixed a nasty bug in debug.c

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 5ae0401281)
This commit is contained in:
Andrew Tridgell 1998-08-11 14:09:05 +00:00
parent e107f73082
commit ab1bfe5b0d

View File

@ -422,7 +422,7 @@ static void format_debug_text( char *msg )
if( '\n' == msg[i] )
{
format_bufr[format_pos] = '\0';
Debug1( format_bufr );
Debug1( "%s", format_bufr );
format_pos = 0;
}
}