mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-24 10:38:38 +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>
|
||||
|
||||
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;
|
||||
linebuffer_setlen (&token_name, oldlen + len);
|
||||
memcpy (token_name.buffer + oldlen, str, len);
|
||||
token_name.buffer[oldlen + len] = '\0';
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user