Use startswith more for strncmp function calls.
[deliverable/binutils-gdb.git] / bfd / elf-bfd.h
index 101c2fdf50d040eb95db841254e0b5794a8e541e..296b80ad95228e4934afa280ba60da531f9801da 100644 (file)
@@ -3093,7 +3093,7 @@ static inline bool
 bfd_section_is_ctf (const asection *sec)
 {
   const char *name = bfd_section_name (sec);
-  return strncmp (name, ".ctf", 4) == 0 && (name[4] == 0 || name[4] == '.');
+  return startswith (name, ".ctf") && (name[4] == 0 || name[4] == '.');
 }
 
 #ifdef __cplusplus
This page took 0.024594 seconds and 4 git commands to generate.