diff options
Diffstat (limited to 'lib/buffer.c')
-rw-r--r-- | lib/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/buffer.c b/lib/buffer.c index 60048bc0..8666ab78 100644 --- a/lib/buffer.c +++ b/lib/buffer.c @@ -95,7 +95,7 @@ buffer_getstr (struct buffer *b) for (data = b->head; data; data = data->next) totlen += data->cp - data->sp; - if (!(s = malloc(totlen+1))) + if (!(s = XMALLOC(MTYPE_TMP, totlen+1))) return NULL; p = s; for (data = b->head; data; data = data->next) |