if (XSTRING (name)->size == 0)
error ("Empty string for buffer name is not allowed");
- b = (struct buffer *) xmalloc (sizeof (struct buffer));
+ b = (struct buffer *) allocate_buffer ();
b->size = sizeof (struct buffer) / sizeof (EMACS_INT);
if (XSTRING (name)->size == 0)
error ("Empty string for buffer name is not allowed");
- b = (struct buffer *) xmalloc (sizeof (struct buffer));
-
+ b = (struct buffer *) allocate_buffer ();
b->size = sizeof (struct buffer) / sizeof (EMACS_INT);
if (XBUFFER (base_buffer)->base_buffer)