From 104141eec139bef7a41c6e8719ed74e1f6034d07 Mon Sep 17 00:00:00 2001 From: Quantum Date: Sun, 15 Aug 2021 18:46:37 -0400 Subject: [PATCH] [client] use correct argument order for calloc --- client/renderers/EGL/texture_dmabuf.c | 2 +- client/renderers/EGL/texture_framebuffer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/renderers/EGL/texture_dmabuf.c b/client/renderers/EGL/texture_dmabuf.c index f753c006..2f410ffe 100644 --- a/client/renderers/EGL/texture_dmabuf.c +++ b/client/renderers/EGL/texture_dmabuf.c @@ -57,7 +57,7 @@ static void egl_texDMABUFCleanup(TexDMABUF * this) static bool egl_texDMABUFInit(EGL_Texture ** texture, EGLDisplay * display) { - TexDMABUF * this = (TexDMABUF *)calloc(sizeof(*this), 1); + TexDMABUF * this = (TexDMABUF *)calloc(1, sizeof(*this)); *texture = &this->base.base; EGL_Texture * parent = &this->base.base; diff --git a/client/renderers/EGL/texture_framebuffer.c b/client/renderers/EGL/texture_framebuffer.c index 5523e73b..c0172dbf 100644 --- a/client/renderers/EGL/texture_framebuffer.c +++ b/client/renderers/EGL/texture_framebuffer.c @@ -40,7 +40,7 @@ TexFB; static bool egl_texFBInit(EGL_Texture ** texture, EGLDisplay * display) { - TexFB * this = calloc(sizeof(*this), 1); + TexFB * this = calloc(1, sizeof(*this)); *texture = &this->base.base; EGL_Texture * parent = &this->base.base;