changeset 52421:c6c2d0694257

(consider_token): check C++ `operator' only when the token len is long enough.
author Francesco Potortì <pot@gnu.org>
date Wed, 03 Sep 2003 14:20:49 +0000
parents a3a47e605eb7
children 11b0aed20b26
files lib-src/etags.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/etags.c	Wed Sep 03 14:19:19 2003 +0000
+++ b/lib-src/etags.c	Wed Sep 03 14:20:49 2003 +0000
@@ -3116,7 +3116,7 @@
 	      fvdef = vignore;
 	      return FALSE;
 	    }
-	  if (strneq (str+len-10, "::operator", 10))
+	  if (len >= 10 && strneq (str+len-10, "::operator", 10))
 	    {
 	      if (*c_extp & C_AUTO) /* automatic detection of C++ */
 		*c_extp = (*c_extp | C_PLPL) & ~C_AUTO;