diff options
author | Xinliang David Li <davidxl@google.com> | 2009-07-20 19:08:15 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@gcc.gnu.org> | 2009-07-20 19:08:15 +0000 |
commit | d0763469746e3411794aa95bf01e364ff50f3eb9 (patch) | |
tree | 004f4a63711a184de8f0fd5893d820db50cf5199 /gcc/dbgcnt.c | |
parent | 752fd2a8924c98f952f809991869ed5b1c255181 (diff) | |
download | gcc-d0763469746e3411794aa95bf01e364ff50f3eb9.zip gcc-d0763469746e3411794aa95bf01e364ff50f3eb9.tar.gz gcc-d0763469746e3411794aa95bf01e364ff50f3eb9.tar.bz2 |
dbgcnt name matching bug fix
From-SVN: r149830
Diffstat (limited to 'gcc/dbgcnt.c')
-rw-r--r-- | gcc/dbgcnt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/dbgcnt.c b/gcc/dbgcnt.c index 859aabf..0c496b3 100644 --- a/gcc/dbgcnt.c +++ b/gcc/dbgcnt.c @@ -82,7 +82,8 @@ dbg_cnt_set_limit_by_name (const char *name, int len, int value) { int i; for (i = debug_counter_number_of_counters - 1; i >= 0; i--) - if (!strncmp (map[i].name, name, len)) + if (strncmp (map[i].name, name, len) == 0 + && map[i].name[len] == '\0') break; if (i < 0) |