* 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 c5cb082..ec90bbc 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 fd51f50..fb9b15e 100644 (file)
@@ -5083,7 +5083,7 @@ init_buffer (void)
 {
   char *pwd;
   Lisp_Object temp;
-  int len;
+  ptrdiff_t len;
 
 #ifdef USE_MMAP_FOR_BUFFERS
  {