* the name of an image is actually B_PATH_NAME_LENGTH long
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23707 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
0644c0e333
commit
28ff3e2c9a
@ -344,8 +344,8 @@ debug_lookup_symbol_address(debug_symbol_lookup_context *lookupContext,
|
||||
}
|
||||
|
||||
if (imageName) {
|
||||
if (imageNameSize > B_OS_NAME_LENGTH)
|
||||
imageNameSize = B_OS_NAME_LENGTH;
|
||||
if (imageNameSize > B_PATH_NAME_LENGTH)
|
||||
imageNameSize = B_PATH_NAME_LENGTH;
|
||||
strlcpy(imageName, _imageName, imageNameSize);
|
||||
}
|
||||
|
||||
|
@ -587,7 +587,7 @@ TeamDebugHandler::_LookupSymbolAddress(
|
||||
// lookup the symbol
|
||||
void *baseAddress;
|
||||
char symbolName[1024];
|
||||
char imageName[B_OS_NAME_LENGTH];
|
||||
char imageName[B_PATH_NAME_LENGTH];
|
||||
bool exactMatch;
|
||||
bool lookupSucceeded = false;
|
||||
if (lookupContext) {
|
||||
|
Loading…
Reference in New Issue
Block a user