diff options
author | Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> | 1998-04-26 15:41:36 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1998-04-26 11:41:36 -0400 |
commit | 7bf407413f0d6b36bd1a799fea2d5863465dafed (patch) | |
tree | f6e2081283e8a479f677878d976f41b4b20c6ea6 /gcc/cplus-dem.c | |
parent | 965cec417884aea6ecada41cdc75902f91246ee7 (diff) | |
download | gcc-7bf407413f0d6b36bd1a799fea2d5863465dafed.zip gcc-7bf407413f0d6b36bd1a799fea2d5863465dafed.tar.gz gcc-7bf407413f0d6b36bd1a799fea2d5863465dafed.tar.bz2 |
cplus-dem.c (gnu_special): Fix off-by-one bug when checking the length in the name of a virtual table.
* cplus-dem.c (gnu_special): Fix off-by-one bug when checking the
length in the name of a virtual table.
From-SVN: r19417
Diffstat (limited to 'gcc/cplus-dem.c')
-rw-r--r-- | gcc/cplus-dem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cplus-dem.c b/gcc/cplus-dem.c index abc85bb..21e3b6e 100644 --- a/gcc/cplus-dem.c +++ b/gcc/cplus-dem.c @@ -2003,7 +2003,7 @@ gnu_special (work, mangled, declp) ".<digits>" indicating a static local symbol. In any case, declare victory and move on; *don't* try to use n to allocate. */ - if (n >= strlen (*mangled)) + if (n > strlen (*mangled)) { success = 1; break; |