Fix broken build of mac crash report tool.
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@723 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
3382d1e0a6
commit
3b4ac42ff8
1 changed files with 2 additions and 3 deletions
|
@ -171,14 +171,13 @@ OnDemandSymbolSupplier::GetCStringSymbolData(const CodeModule *module,
|
||||||
symbol_file,
|
symbol_file,
|
||||||
&symbol_data_string);
|
&symbol_data_string);
|
||||||
if (result == FOUND) {
|
if (result == FOUND) {
|
||||||
unsigned int size = symbol_data_string.size() + 1;
|
*symbol_data = new char[symbol_data_string.size() + 1];
|
||||||
*symbol_data = new char[size];
|
|
||||||
if (*symbol_data == NULL) {
|
if (*symbol_data == NULL) {
|
||||||
// Should return INTERRUPT on memory allocation failure.
|
// Should return INTERRUPT on memory allocation failure.
|
||||||
return INTERRUPT;
|
return INTERRUPT;
|
||||||
}
|
}
|
||||||
strcpy(*symbol_data, symbol_data_string.c_str());
|
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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue