-Wstringop-truncation warnings
[deliverable/binutils-gdb.git] / bfd / cofflink.c
index fb1696afff154a75a7eaabf7f9b426d19ac727a1..6ca547ce5bc549e7d6cad6e66cc11cd7339e6b96 100644 (file)
@@ -1839,7 +1839,7 @@ _bfd_coff_link_input_bfd (struct coff_final_link_info *flaginfo, bfd *input_bfd)
 
            case C_FCN:
              if (obj_pe (input_bfd)
-                 && strcmp (isym.n_name, ".bf") != 0
+                 && strncmp (isym.n_name, ".bf", sizeof isym.n_name) != 0
                  && isym.n_scnum > 0)
                {
                  /* For PE, .lf and .ef get their value left alone,
This page took 0.045016 seconds and 4 git commands to generate.