diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp index 919c10fcad53..a807c3360ae8 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp @@ -744,7 +744,7 @@ PlatformDarwinKernel::GetKernelsInDirectory (void *baton, { ConstString filename = file_spec.GetFilename(); if (strncmp (filename.GetCString(), "kernel", 6) == 0 - || strncmp (filename.GetCString(), "mach.", 5) == 0) + || strncmp (filename.GetCString(), "mach", 4) == 0) { // This is m_kernel_binaries but we're in a class method here ((std::vector *)baton)->push_back(file_spec);