diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2011-05-19 17:34:44 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-05-19 17:34:44 +0000 |
| commit | 1cbedd3ee0043ef7ce18d6dabe296583e6891d2d (patch) | |
| tree | 4070a3b0d9f98f58aa92e2b605db5aaaf37fba66 /lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp | |
| parent | a09bfcaed488f522ef618b0b023422902f197ff2 (diff) | |
| download | bcm5719-llvm-1cbedd3ee0043ef7ce18d6dabe296583e6891d2d.tar.gz bcm5719-llvm-1cbedd3ee0043ef7ce18d6dabe296583e6891d2d.zip | |
Use the portable memchr function instead of the BSD-only strnstr
llvm-svn: 131646
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp')
| -rw-r--r-- | lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp index 8e883d15eb2..966d28f263d 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp @@ -813,10 +813,10 @@ DWARFCompileUnit::Index // Also see if this is a "category" on our class. If so strip off the category name, // and add the class name without it to the basename table. - const char *first_paren = strnstr (name, "(", method_name - name); + const char *first_paren = (char *) memchr (name, '(', method_name - name); if (first_paren) { - const char *second_paren = strnstr (first_paren, ")", method_name - first_paren); + const char *second_paren = (char *) memchr (first_paren, ')', method_name - first_paren); if (second_paren) { std::string buffer (name, first_paren - name); |

