diff -r 60f91c9f1a24 xen/tools/symbols.c --- a/xen/tools/symbols.c Wed Jan 03 23:53:27 2007 +0000 +++ b/xen/tools/symbols.c Thu Jan 04 09:12:52 2007 +0100 @@ -363,7 +363,7 @@ static void compress_symbols(unsigned ch p1 = table[i].sym; /* find the token on the symbol */ - p2 = memmem(p1, len, str, 2); + p2 = strstr(p1, str); if (!p2) continue; /* decrease the counts for this symbol's tokens */ @@ -382,7 +382,7 @@ static void compress_symbols(unsigned ch if (size < 2) break; /* find the token on the symbol */ - p2 = memmem(p1, size, str, 2); + p2 = strstr(p1, str); } while (p2);