From 3b4ac42ff8798ecebe32e73644170e261b044f64 Mon Sep 17 00:00:00 2001 From: "SiyangXie@gmail.com" Date: Wed, 3 Nov 2010 23:49:41 +0000 Subject: Fix broken build of mac crash report tool. git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@723 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/tools/mac/crash_report/on_demand_symbol_supplier.mm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/tools/mac') diff --git a/src/tools/mac/crash_report/on_demand_symbol_supplier.mm b/src/tools/mac/crash_report/on_demand_symbol_supplier.mm index f71aebd9..00360f67 100644 --- a/src/tools/mac/crash_report/on_demand_symbol_supplier.mm +++ b/src/tools/mac/crash_report/on_demand_symbol_supplier.mm @@ -171,14 +171,13 @@ OnDemandSymbolSupplier::GetCStringSymbolData(const CodeModule *module, symbol_file, &symbol_data_string); if (result == FOUND) { - unsigned int size = symbol_data_string.size() + 1; - *symbol_data = new char[size]; + *symbol_data = new char[symbol_data_string.size() + 1]; if (*symbol_data == NULL) { // Should return INTERRUPT on memory allocation failure. return INTERRUPT; } strcpy(*symbol_data, symbol_data_string.c_str()); - memory_buffers_.insert(make_pair(module->code_file(), *symbol_data); + memory_buffers_.insert(make_pair(module->code_file(), *symbol_data)); } return result; } -- cgit v1.2.1