mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-12 16:23:57 +00:00
Fixes: debbugs:12306
* etags.c (consider_token): Always zero-terminate token buffer.
This commit is contained in:
parent
862382df3d
commit
5bf647499a
@ -1,3 +1,8 @@
|
|||||||
|
2012-08-31 Andreas Schwab <schwab@linux-m68k.org>
|
||||||
|
|
||||||
|
* etags.c (consider_token): Always zero-terminate token buffer.
|
||||||
|
(Bug#12306)
|
||||||
|
|
||||||
2012-08-19 Paul Eggert <eggert@cs.ucla.edu>
|
2012-08-19 Paul Eggert <eggert@cs.ucla.edu>
|
||||||
|
|
||||||
Rely on <config.h> + <unistd.h> to declare 'environ'.
|
Rely on <config.h> + <unistd.h> to declare 'environ'.
|
||||||
|
@ -2878,6 +2878,7 @@ consider_token (register char *str, register int len, register int c, int *c_ext
|
|||||||
objdef = omethodtag;
|
objdef = omethodtag;
|
||||||
linebuffer_setlen (&token_name, oldlen + len);
|
linebuffer_setlen (&token_name, oldlen + len);
|
||||||
memcpy (token_name.buffer + oldlen, str, len);
|
memcpy (token_name.buffer + oldlen, str, len);
|
||||||
|
token_name.buffer[oldlen + len] = '\0';
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user