bfd/
[deliverable/binutils-gdb.git] / binutils / dlltool.c
index 2c3aa6dc2f1d477e2cbd16076cfb4179bada1183..a24a55255ff6ec496874f8ee1fe9db5933d5da51 100644 (file)
@@ -2131,8 +2131,9 @@ xlate (const char *name)
       char *p;
 
       name += lead_at;
-      p = strchr (name, '@');
-      if (p)
+      /* PR 9766: Look for the last @ sign in the name.  */
+      p = strrchr (name, '@');
+      if (p && ISDIGIT (p[1]))
        *p = 0;
     }
   return name;
This page took 0.023716 seconds and 4 git commands to generate.