1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-01 20:06:00 +00:00

* buffer.c (init_buffer): Don't assume string length fits in 'int'.

This commit is contained in:
Paul Eggert 2011-06-19 11:27:58 -07:00
parent f14ed477b8
commit 965d34ebb3
2 changed files with 3 additions and 1 deletions

View 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

View File

@ -5083,7 +5083,7 @@ init_buffer (void)
{
char *pwd;
Lisp_Object temp;
int len;
ptrdiff_t len;
#ifdef USE_MMAP_FOR_BUFFERS
{