Alexandre Julliard : server: Don't dump more than 1024 bytes in a trace.
Alexandre Julliard
julliard at winehq.org
Fri Jan 8 10:28:56 CST 2010
Module: wine
Branch: master
Commit: b824fe05f4348ed6a2af45c4320d6eaf85eb3975
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b824fe05f4348ed6a2af45c4320d6eaf85eb3975
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Jan 7 20:27:17 2010 +0100
server: Don't dump more than 1024 bytes in a trace.
---
server/trace.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/server/trace.c b/server/trace.c
index 6cb4cc9..df47e8f 100644
--- a/server/trace.c
+++ b/server/trace.c
@@ -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 );
}
More information about the wine-cvs
mailing list