From: Paul Eggert Date: Sun, 19 Jun 2011 18:27:58 +0000 (-0700) Subject: * buffer.c (init_buffer): Don't assume string length fits in 'int'. X-Git-Tag: emacs-pretest-24.0.90~104^2~473^2~35 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=965d34ebb3b4226d6ace4c53cf3b15c8c4159e5c;p=emacs.git * buffer.c (init_buffer): Don't assume string length fits in 'int'. --- diff --git a/src/ChangeLog b/src/ChangeLog index c5cb08237de..ec90bbc3325 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2011-06-19 Paul Eggert + * 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 diff --git a/src/buffer.c b/src/buffer.c index fd51f50dcac..fb9b15e4c70 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -5083,7 +5083,7 @@ init_buffer (void) { char *pwd; Lisp_Object temp; - int len; + ptrdiff_t len; #ifdef USE_MMAP_FOR_BUFFERS {