diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-06-11 10:26:19 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-06-11 10:27:47 -0700 |
commit | 178b95c486a1abcf2395157600dc1a2da7e67441 (patch) | |
tree | 6313208d7a1eca89f42952150b9431ab97b2bf12 /src/Xdbe.c | |
parent | d965a1a8ce9331d2aaf1c697a29455ad55171b36 (diff) | |
download | xorg-lib-libXext-178b95c486a1abcf2395157600dc1a2da7e67441.tar.gz |
Convert calls to Xmalloc arrays to use Xmallocarray instead
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/Xdbe.c')
-rw-r--r-- | src/Xdbe.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -40,6 +40,7 @@ #include <X11/extensions/Xdbe.h> #include <X11/extensions/dbeproto.h> #include <limits.h> +#include "reallocarray.h" static XExtensionInfo _dbe_info_data; static XExtensionInfo *dbe_info = &_dbe_info_data; @@ -367,7 +368,7 @@ XdbeScreenVisualInfo *XdbeGetVisualInfo ( if (c < 65536) { scrVisInfo[i].count = c; - scrVisInfo[i].visinfo = Xmalloc(c * sizeof(XdbeVisualInfo)); + scrVisInfo[i].visinfo = Xmallocarray(c, sizeof(XdbeVisualInfo)); } else scrVisInfo[i].visinfo = NULL; |