HCoop
/
bpt
/
emacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
(consider_token): check C++ `operator' only when the token len is long
[bpt/emacs.git]
/
lib-src
/
etags.c
diff --git
a/lib-src/etags.c
b/lib-src/etags.c
index
4a10a6c
..
e9fab1b
100644
(file)
--- a/
lib-src/etags.c
+++ b/
lib-src/etags.c
@@
-3116,7
+3116,7
@@
consider_token (str, len, c, c_extp, cblev, parlev, is_func_or_var)
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;