Commit 8bc1440d authored by Robert Schmidt's avatar Robert Schmidt

reallocarray -> realloc since CI env has no reallocarray

parent 29c84696
...@@ -225,7 +225,7 @@ int load_module_version_shlib(char *modname, char *version, loader_shlibfunc_t * ...@@ -225,7 +225,7 @@ int load_module_version_shlib(char *modname, char *version, loader_shlibfunc_t *
} }
if (j == shlib->numfunc) { if (j == shlib->numfunc) {
if (shlib->numfunc == shlib->len_funcarray) { if (shlib->numfunc == shlib->len_funcarray) {
loader_shlibfunc_t *n = reallocarray(shlib->funcarray, shlib->numfunc * 2, sizeof(loader_shlibfunc_t)); loader_shlibfunc_t *n = realloc(shlib->funcarray, shlib->numfunc * 2 * sizeof(loader_shlibfunc_t));
if (!n) { if (!n) {
fprintf(stderr, "[LOADER] %s(): unable to allocate memory\n", __func__); fprintf(stderr, "[LOADER] %s(): unable to allocate memory\n", __func__);
ret = -1; ret = -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment