aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorGerd Moellmann2000-02-17 15:21:58 +0000
committerGerd Moellmann2000-02-17 15:21:58 +0000
commita21260d97c1c2b15736e5c99af4383c9ebc18903 (patch)
tree46ba84c9ab9b36edf9c6ae2be7705a0ddc94ee83 /src/buffer.c
parent344000084d72f603d5953c65f1570841e01b98e4 (diff)
downloademacs-a21260d97c1c2b15736e5c99af4383c9ebc18903.tar.gz
emacs-a21260d97c1c2b15736e5c99af4383c9ebc18903.zip
(Fget_buffer_create, Fmake_indirect_buffer): Use
allocate_buffer instead of xmalloc.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 2fb9fefd5e9..59487962008 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -330,7 +330,7 @@ The value is never nil.")
330 if (XSTRING (name)->size == 0) 330 if (XSTRING (name)->size == 0)
331 error ("Empty string for buffer name is not allowed"); 331 error ("Empty string for buffer name is not allowed");
332 332
333 b = (struct buffer *) xmalloc (sizeof (struct buffer)); 333 b = (struct buffer *) allocate_buffer ();
334 334
335 b->size = sizeof (struct buffer) / sizeof (EMACS_INT); 335 b->size = sizeof (struct buffer) / sizeof (EMACS_INT);
336 336
@@ -427,8 +427,7 @@ NAME should be a string which is not the name of an existing buffer.")
427 if (XSTRING (name)->size == 0) 427 if (XSTRING (name)->size == 0)
428 error ("Empty string for buffer name is not allowed"); 428 error ("Empty string for buffer name is not allowed");
429 429
430 b = (struct buffer *) xmalloc (sizeof (struct buffer)); 430 b = (struct buffer *) allocate_buffer ();
431
432 b->size = sizeof (struct buffer) / sizeof (EMACS_INT); 431 b->size = sizeof (struct buffer) / sizeof (EMACS_INT);
433 432
434 if (XBUFFER (base_buffer)->base_buffer) 433 if (XBUFFER (base_buffer)->base_buffer)