diff options
author | Nick Clifton <nickc@redhat.com> | 2009-01-26 15:52:55 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2009-01-26 15:52:55 +0000 |
commit | 2c2ce03fbdd1cfa56210d39289357472fcf8b07b (patch) | |
tree | 6b56741fa5efe2feae972537692eeec57c55b3bd /binutils/dlltool.c | |
parent | 9bc4e62bdc0fdb16a98730b9bc038b2cea6b39e4 (diff) | |
download | gdb-2c2ce03fbdd1cfa56210d39289357472fcf8b07b.zip gdb-2c2ce03fbdd1cfa56210d39289357472fcf8b07b.tar.gz gdb-2c2ce03fbdd1cfa56210d39289357472fcf8b07b.tar.bz2 |
PR 9766
* dlltool.c (xlate): When strip text after the @ sign, look for
the last one not the first one.
Diffstat (limited to 'binutils/dlltool.c')
-rw-r--r-- | binutils/dlltool.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/binutils/dlltool.c b/binutils/dlltool.c index 2c3aa6d..a24a552 100644 --- a/binutils/dlltool.c +++ b/binutils/dlltool.c @@ -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; |