Fixes: debbugs:12306
* etags.c (consider_token): Always zero-terminate token buffer.
This commit is contained in:
parent
862382df3d
commit
5bf647499a
2 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue