aboutsummaryrefslogtreecommitdiff
path: root/gprof/symtab.c
diff options
context:
space:
mode:
Diffstat (limited to 'gprof/symtab.c')
-rw-r--r--gprof/symtab.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gprof/symtab.c b/gprof/symtab.c
index 53b261a..e4fda46 100644
--- a/gprof/symtab.c
+++ b/gprof/symtab.c
@@ -132,7 +132,8 @@ DEFUN (symtab_finalize, (tab), Sym_Table * tab)
/* retain sym only if it has a non-empty address range: */
if (!src->end_addr || src->addr <= src->end_addr)
{
- *dst++ = *src;
+ *dst = *src;
+ dst++;
prev_addr = src->addr;
}
}