diff options
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 10 | ||||
| -rw-r--r-- | lib-src/emacsclient.c | 5 | ||||
| -rw-r--r-- | lib-src/etags.c | 1 |
3 files changed, 11 insertions, 5 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index fe90917a70b..35190fd2a8f 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2012-08-31 Andreas Schwab <schwab@linux-m68k.org> | ||
| 2 | |||
| 3 | * etags.c (consider_token): Always zero-terminate token buffer. | ||
| 4 | (Bug#12306) | ||
| 5 | |||
| 6 | 2012-08-19 Paul Eggert <eggert@cs.ucla.edu> | ||
| 7 | |||
| 8 | Rely on <config.h> + <unistd.h> to declare 'environ'. | ||
| 9 | * emacsclient.c (environ): Remove decl. | ||
| 10 | |||
| 1 | 2012-08-17 Juanma Barranquero <lekktu@gmail.com> | 11 | 2012-08-17 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 12 | ||
| 3 | * makefile.w32-in ($(BLD)/regex.$(O)): Update dependencies. | 13 | * makefile.w32-in ($(BLD)/regex.$(O)): Update dependencies. |
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 20afe1cad11..07300dbf249 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -1584,11 +1584,6 @@ main (int argc, char **argv) | |||
| 1584 | /* Send over our environment and current directory. */ | 1584 | /* Send over our environment and current directory. */ |
| 1585 | if (!current_frame) | 1585 | if (!current_frame) |
| 1586 | { | 1586 | { |
| 1587 | #ifndef WINDOWSNT | ||
| 1588 | /* This is defined in stdlib.h on MS-Windows. It's defined in | ||
| 1589 | unistd.h on some POSIX hosts, but not all (Bug#10155). */ | ||
| 1590 | extern char **environ; | ||
| 1591 | #endif | ||
| 1592 | int i; | 1587 | int i; |
| 1593 | for (i = 0; environ[i]; i++) | 1588 | for (i = 0; environ[i]; i++) |
| 1594 | { | 1589 | { |
diff --git a/lib-src/etags.c b/lib-src/etags.c index 9c03735c954..e65082de534 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -2878,6 +2878,7 @@ consider_token (register char *str, register int len, register int c, int *c_ext | |||
| 2878 | objdef = omethodtag; | 2878 | objdef = omethodtag; |
| 2879 | linebuffer_setlen (&token_name, oldlen + len); | 2879 | linebuffer_setlen (&token_name, oldlen + len); |
| 2880 | memcpy (token_name.buffer + oldlen, str, len); | 2880 | memcpy (token_name.buffer + oldlen, str, len); |
| 2881 | token_name.buffer[oldlen + len] = '\0'; | ||
| 2881 | return TRUE; | 2882 | return TRUE; |
| 2882 | } | 2883 | } |
| 2883 | return FALSE; | 2884 | return FALSE; |