emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r111390: Fix a bug with time zones on


From: Eli Zaretskii
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r111390: Fix a bug with time zones on MS-Windows.
Date: Mon, 31 Dec 2012 18:09:00 +0200
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 111390
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Mon 2012-12-31 18:09:00 +0200
message:
  Fix a bug with time zones on MS-Windows.
  
   src/w32.c (unsetenv): Set up the string passed to _putenv
   correctly.  See
   http://lists.gnu.org/archive/html/emacs-devel/2012-12/msg00863.html
   for the bug this caused.
modified:
  src/ChangeLog
  src/w32.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-12-30 21:34:39 +0000
+++ b/src/ChangeLog     2012-12-31 16:09:00 +0000
@@ -1,3 +1,10 @@
+2012-12-31  Eli Zaretskii  <address@hidden>
+
+       * w32.c (unsetenv): Set up the string passed to _putenv
+       correctly.  See
+       http://lists.gnu.org/archive/html/emacs-devel/2012-12/msg00863.html
+       for the bug this caused.
+
 2012-12-30  Paul Eggert  <address@hidden>
 
        * coding.c (Qmac): Now static.

=== modified file 'src/w32.c'
--- a/src/w32.c 2012-12-25 17:14:23 +0000
+++ b/src/w32.c 2012-12-31 16:09:00 +0000
@@ -1784,6 +1784,7 @@
   /* It is safe to use 'alloca' with 32K size, since the stack is at
      least 2MB, and we set it to 8MB in the link command line.  */
   var = alloca (name_len + 2);
+  strncpy (var, name, name_len);
   var[name_len++] = '=';
   var[name_len] = '\0';
   return _putenv (var);


reply via email to

[Prev in Thread] Current Thread [Next in Thread]