aboutsummaryrefslogtreecommitdiff
path: root/binutils/budemang.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-10-18 07:26:30 +0000
committerAlan Modra <amodra@gmail.com>2004-10-18 07:26:30 +0000
commit7f67d4c98a7efc189145ba077f968ef626c9c748 (patch)
treef3a1ebd38e21ef82a70219fdeb0f625d6df2d95f /binutils/budemang.c
parent2bb2d727c1a0724b85265e77ecd174168ccc1593 (diff)
downloadgdb-7f67d4c98a7efc189145ba077f968ef626c9c748.zip
gdb-7f67d4c98a7efc189145ba077f968ef626c9c748.tar.gz
gdb-7f67d4c98a7efc189145ba077f968ef626c9c748.tar.bz2
* budemang.c (demangle): Fix thinko.
Diffstat (limited to 'binutils/budemang.c')
-rw-r--r--binutils/budemang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/budemang.c b/binutils/budemang.c
index c992570..bd50083 100644
--- a/binutils/budemang.c
+++ b/binutils/budemang.c
@@ -52,7 +52,7 @@ demangle (bfd *abfd, const char *name)
pre = name;
while (*name == '.')
++name;
- pre_len = pre - name;
+ pre_len = name - pre;
alloc = NULL;
suf = strchr (name, '@');