emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r101623: src/w32.c (get_emacs_configu


From: Juanma Barranquero
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r101623: src/w32.c (get_emacs_configuration_options): Fix previous change.
Date: Sun, 26 Sep 2010 03:39:24 +0200
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 101623
committer: Juanma Barranquero <address@hidden>
branch nick: trunk
timestamp: Sun 2010-09-26 03:39:24 +0200
message:
  src/w32.c (get_emacs_configuration_options): Fix previous change.
modified:
  src/ChangeLog
  src/w32.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2010-09-25 19:50:13 +0000
+++ b/src/ChangeLog     2010-09-26 01:39:24 +0000
@@ -1,3 +1,7 @@
+2010-09-26  Juanma Barranquero  <address@hidden>
+
+       * w32.c (get_emacs_configuration_options): Fix previous change.
+
 2010-09-25  Chong Yidong  <address@hidden>
 
        * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is

=== modified file 'src/w32.c'
--- a/src/w32.c 2010-09-22 18:39:51 +0000
+++ b/src/w32.c 2010-09-26 01:39:24 +0000
@@ -1956,8 +1956,9 @@
 #endif
 #endif
 
-  if (_snprintf (cv, sizeof (cv), COMPILER_VERSION) < 0)
+  if (_snprintf (cv, sizeof (cv) - 1, COMPILER_VERSION) < 0)
     return "Error: not enough space for compiler version";
+  cv[sizeof (cv) - 1] = '\0';
 
   for (i = 0; options[i]; i++)
     size += strlen (options[i]);


reply via email to

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