aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 2af75e3c471..2d1c8ffe70b 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -1055,7 +1055,8 @@ allocate_buffer (void)
1055 struct buffer *b 1055 struct buffer *b
1056 = (struct buffer *) lisp_malloc (sizeof (struct buffer), 1056 = (struct buffer *) lisp_malloc (sizeof (struct buffer),
1057 MEM_TYPE_BUFFER); 1057 MEM_TYPE_BUFFER);
1058 b->size = sizeof (struct buffer) / sizeof (EMACS_INT); 1058 b->size = ((sizeof (struct buffer) + sizeof (EMACS_INT) - 1)
1059 / sizeof (EMACS_INT));
1059 XSETPVECTYPE (b, PVEC_BUFFER); 1060 XSETPVECTYPE (b, PVEC_BUFFER);
1060 return b; 1061 return b;
1061} 1062}