diff options
Diffstat (limited to 'libdwfl/dwfl_module_getdwarf.c')
-rw-r--r-- | libdwfl/dwfl_module_getdwarf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdwfl/dwfl_module_getdwarf.c b/libdwfl/dwfl_module_getdwarf.c index 2f3dd0dd..6f076057 100644 --- a/libdwfl/dwfl_module_getdwarf.c +++ b/libdwfl/dwfl_module_getdwarf.c | |||
@@ -1162,7 +1162,7 @@ find_symtab (Dwfl_Module *mod) | |||
1162 | if (sname == NULL) | 1162 | if (sname == NULL) |
1163 | goto elferr; | 1163 | goto elferr; |
1164 | 1164 | ||
1165 | if (strncmp (sname, ".zdebug", strlen (".zdebug")) == 0) | 1165 | if (startswith (sname, ".zdebug")) |
1166 | /* Try to uncompress, but it might already have been, an error | 1166 | /* Try to uncompress, but it might already have been, an error |
1167 | might just indicate, already uncompressed. */ | 1167 | might just indicate, already uncompressed. */ |
1168 | elf_compress_gnu (symstrscn, 0, 0); | 1168 | elf_compress_gnu (symstrscn, 0, 0); |
@@ -1245,7 +1245,7 @@ find_symtab (Dwfl_Module *mod) | |||
1245 | if (sname == NULL) | 1245 | if (sname == NULL) |
1246 | goto elferr; | 1246 | goto elferr; |
1247 | 1247 | ||
1248 | if (strncmp (sname, ".zdebug", strlen (".zdebug")) == 0) | 1248 | if (startswith (sname, ".zdebug")) |
1249 | /* Try to uncompress, but it might already have been, an error | 1249 | /* Try to uncompress, but it might already have been, an error |
1250 | might just indicate, already uncompressed. */ | 1250 | might just indicate, already uncompressed. */ |
1251 | elf_compress_gnu (aux_strscn, 0, 0); | 1251 | elf_compress_gnu (aux_strscn, 0, 0); |