summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-06-16 15:50:46 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-06-16 15:50:46 -0700
commitdd3482fe595a93359c0c65bb7d48100a5d9a90d9 (patch)
tree4e282bc2ad7905e0fd6bbd882f915d92cd840b90
parent393d71f34cd42b77afe78fbd174f2b1377182232 (diff)
downloademacs-dd3482fe595a93359c0c65bb7d48100a5d9a90d9.tar.gz
emacs-dd3482fe595a93359c0c65bb7d48100a5d9a90d9.tar.bz2
emacs-dd3482fe595a93359c0c65bb7d48100a5d9a90d9.zip
* lisp.h: Include <limits.h>, for INT_MAX, LONG_MAX, LLONG_MAX.
Without this, prin1 mishandles Lisp_Misc_Save_Value printing on hosts with pre-C99 libraries, because pD is wrongly defined to "t".
-rw-r--r--src/ChangeLog4
-rw-r--r--src/lisp.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index ae1a00cf173..e8aa1c67d3c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,9 @@
2011-06-16 Paul Eggert <eggert@cs.ucla.edu>
+ * lisp.h: Include <limits.h>, for INT_MAX, LONG_MAX, LLONG_MAX.
+ Without this, prin1 mishandles Lisp_Misc_Save_Value printing on
+ hosts with pre-C99 libraries, because pD is wrongly defined to "t".
+
Improve buffer-overflow checking (Bug#8873).
* fileio.c (Finsert_file_contents):
* insdel.c (insert_from_buffer_1, replace_range, replace_range_2):
diff --git a/src/lisp.h b/src/lisp.h
index 75827deda1a..1e3036344f5 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -23,6 +23,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#include <stdarg.h>
#include <stddef.h>
#include <inttypes.h>
+#include <limits.h>
#include <intprops.h>