server: Don't dump more than 1024 bytes in a trace.

This commit is contained in:
Alexandre Julliard 2010-01-07 20:27:17 +01:00
parent 065fa22adc
commit b824fe05f4
1 changed files with 2 additions and 1 deletions

View File

@ -373,7 +373,7 @@ static void dump_varargs_user_handles( const char *prefix, data_size_t size )
static void dump_varargs_bytes( const char *prefix, data_size_t size )
{
const unsigned char *data = cur_data;
data_size_t len = size;
data_size_t len = min( 1024, size );
fprintf( stderr,"%s{", prefix );
while (len > 0)
@ -381,6 +381,7 @@ static void dump_varargs_bytes( const char *prefix, data_size_t size )
fprintf( stderr, "%02x", *data++ );
if (--len) fputc( ',', stderr );
}
if (size > 1024) fprintf( stderr, "...(total %u)", size );
fputc( '}', stderr );
remove_data( size );
}