aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorJoakim Verona2012-09-03 17:30:17 +0200
committerJoakim Verona2012-09-03 17:30:17 +0200
commit4a37733c693d59a9b83a3fb2d0c7f9461d149f60 (patch)
treea33402e09342f748baebf0e4f5a1e40538e620f4 /lib-src
parent5436d1df5e2ba0b4d4f72b03a1cd09b20403654b (diff)
parentdcde497f27945c3ca4ce8c21f655ef6f627acdd2 (diff)
downloademacs-4a37733c693d59a9b83a3fb2d0c7f9461d149f60.tar.gz
emacs-4a37733c693d59a9b83a3fb2d0c7f9461d149f60.zip
upstream
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog10
-rw-r--r--lib-src/emacsclient.c5
-rw-r--r--lib-src/etags.c1
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 @@
12012-08-31 Andreas Schwab <schwab@linux-m68k.org>
2
3 * etags.c (consider_token): Always zero-terminate token buffer.
4 (Bug#12306)
5
62012-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
12012-08-17 Juanma Barranquero <lekktu@gmail.com> 112012-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;