* 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:
Stephan Aßmus 2008-01-23 14:58:24 +00:00
parent 0644c0e333
commit 28ff3e2c9a
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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) {