]> git.eshelyaron.com Git - emacs.git/commitdiff
* buffer.c (init_buffer): Don't assume string length fits in 'int'.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 Jun 2011 18:27:58 +0000 (11:27 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 Jun 2011 18:27:58 +0000 (11:27 -0700)
src/ChangeLog
src/buffer.c

index c5cb08237dee24b5be90e50a2fd9a42a228c18ea..ec90bbc3325ab9ad9fb29f2d6f95400f01961195 100644 (file)
@@ -1,5 +1,7 @@
 2011-06-19  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * buffer.c (init_buffer): Don't assume string length fits in 'int'.
+
        * lread.c (invalid_syntax): Omit length argument.
        All uses changed.  This doesn't fix a bug, but it simplifies the
        code away from its former Hollerith-constant appearance, and it's
index fd51f50dcace462d678b336d14d243918f6d76bb..fb9b15e4c70020a17ba830e1a1e13bb039cde520 100644 (file)
@@ -5083,7 +5083,7 @@ init_buffer (void)
 {
   char *pwd;
   Lisp_Object temp;
-  int len;
+  ptrdiff_t len;
 
 #ifdef USE_MMAP_FOR_BUFFERS
  {