Permalink
Browse files

Fix init_buffer for USE_MMAP_FOR_BUFFERS case (backport from trunk)

* buffer.c (init_buffer) [USE_MMAP_FOR_BUFFERS]: Adjust to
aliasing change.
  • Loading branch information...
1 parent ba65aaf commit 2b5bd8e1b71b7dc33ffb9f2d1ee38222db912eb4 Yoshiaki Kasahara committed with Chong Yidong Jan 18, 2012
Showing with 6 additions and 1 deletion.
  1. +5 −0 src/ChangeLog
  2. +1 −1 src/buffer.c
View
@@ -1,3 +1,8 @@
+2012-01-18 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
+
+ * buffer.c (init_buffer) [USE_MMAP_FOR_BUFFERS]: Adjust to
+ aliasing change.
+
2012-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* xftfont.c (xftfont_draw): Use the font metrics of s->font to
View
@@ -5338,7 +5338,7 @@ init_buffer ()
Map new memory. */
struct buffer *b;
- for (b = all_buffers; b; b = b->next)
+ for (b = all_buffers; b; b = b->header.next.buffer)
if (b->text->beg == NULL)
enlarge_buffer_text (b, 0);
}

0 comments on commit 2b5bd8e

Please sign in to comment.