diff options
author | davidxl <davidxl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-07-20 19:08:15 +0000 |
---|---|---|
committer | davidxl <davidxl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-07-20 19:08:15 +0000 |
commit | 5185084deef5348ecab230e6903be779c312e873 (patch) | |
tree | 004f4a63711a184de8f0fd5893d820db50cf5199 /gcc/dbgcnt.c | |
parent | d1cbb8676a85e69625c6b7b80477bf7e7f8fba92 (diff) | |
download | gcc-5185084deef5348ecab230e6903be779c312e873.tar.gz |
dbgcnt name matching bug fix
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149830 138bc75d-0d04-0410-961f-82ee72b054a4
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 859aabff9d9..0c496b308d6 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) |