diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/w32.c | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 483930a6489..e5d663b746e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2012-12-31 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * w32.c (unsetenv): Set up the string passed to _putenv | ||
| 4 | correctly. See | ||
| 5 | http://lists.gnu.org/archive/html/emacs-devel/2012-12/msg00863.html | ||
| 6 | for the bug this caused. | ||
| 7 | |||
| 1 | 2012-12-30 Paul Eggert <eggert@cs.ucla.edu> | 8 | 2012-12-30 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 9 | ||
| 3 | * coding.c (Qmac): Now static. | 10 | * coding.c (Qmac): Now static. |
| @@ -1784,6 +1784,7 @@ unsetenv (const char *name) | |||
| 1784 | /* It is safe to use 'alloca' with 32K size, since the stack is at | 1784 | /* It is safe to use 'alloca' with 32K size, since the stack is at |
| 1785 | least 2MB, and we set it to 8MB in the link command line. */ | 1785 | least 2MB, and we set it to 8MB in the link command line. */ |
| 1786 | var = alloca (name_len + 2); | 1786 | var = alloca (name_len + 2); |
| 1787 | strncpy (var, name, name_len); | ||
| 1787 | var[name_len++] = '='; | 1788 | var[name_len++] = '='; |
| 1788 | var[name_len] = '\0'; | 1789 | var[name_len] = '\0'; |
| 1789 | return _putenv (var); | 1790 | return _putenv (var); |