summaryrefslogtreecommitdiff
path: root/src/XMultibuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/XMultibuf.c')
-rw-r--r--src/XMultibuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XMultibuf.c b/src/XMultibuf.c
index 28c2af4..5e05794 100644
--- a/src/XMultibuf.c
+++ b/src/XMultibuf.c
@@ -177,7 +177,7 @@ static Status event_to_wire (Display *dpy, XEvent *libevent, xEvent *netevent)
* read_buffer_info - read Buffer Info descriptors from the net; if unable
* to allocate memory, read junk to make sure that stream is clear.
*/
-#define TALLOC(type,count) Xmalloc ((unsigned) count * sizeof(type))
+#define TALLOC(type,count) Xcalloc ((unsigned) count, sizeof(type))
static XmbufBufferInfo *read_buffer_info (Display *dpy, int nbufs)
{