When searching for a string buffer, use the key as a substring.

The dfincremental ui does not allow entering strings with trailing
whitespace, and anyway sometimes it is difficult to guess how a GUI
string actually ends. Therefore it is probably more generic to
search for buffers that simply begin with the entered string.
develop
Alexander Gavrilov 2011-04-13 11:45:16 +04:00
parent 538a5f3d81
commit ced036708f
1 changed files with 1 additions and 1 deletions

@ -529,7 +529,7 @@ bool findString (SegmentedFinder* s, uint32_t *addr, const char * compare )
bool findStrBuffer (SegmentedFinder* s, uint32_t *addr, const char * compare )
{
if(strcmp((const char *)addr, compare) == 0)
if(memcmp((const char *)addr, compare, strlen(compare)) == 0)
return true;
return false;
}