From 4f995bd6e64136cd50cbc7a06633559815f4c82f Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Mon, 8 Aug 2005 17:58:41 +0000 Subject: [PATCH] gcc 4.0 warning fix. --- tools/winedump/pe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/winedump/pe.c b/tools/winedump/pe.c index be217ee4ed9..708741d7934 100644 --- a/tools/winedump/pe.c +++ b/tools/winedump/pe.c @@ -920,8 +920,9 @@ static void dump_msgtable_data( const void *ptr, unsigned int size, unsigned int } else { + const char *str = (const char *) entry->Text; printf( "%s%08x \"", prefix, j ); - dump_strA( entry->Text, strlen(entry->Text) ); + dump_strA( entry->Text, strlen(str) ); printf( "\"\n" ); } entry = (const MESSAGE_RESOURCE_ENTRY *)((const char *)entry + entry->Length);