# HG changeset patch # User Francesco Potort # Date 1062598849 0 # Node ID c6c2d06942575dbdea1501f50a9ece6f1e5a0877 # Parent a3a47e605eb717910460cb1666a7387d62e2133a (consider_token): check C++ `operator' only when the token len is long enough. diff -r a3a47e605eb7 -r c6c2d0694257 lib-src/etags.c --- 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;