Commit b1b5a546 authored by Rémi Duraffort's avatar Rémi Duraffort

Fix sizeof mismatch (cid #1049621)

parent 32b1c86c
......@@ -358,7 +358,7 @@ size_t CacheLoad( vlc_object_t *p_this, const char *dir, module_cache_t **r )
else
{
submodule->pp_shortcuts =
xmalloc (sizeof (char **) * submodule->i_shortcuts);
xmalloc (sizeof (*submodule->pp_shortcuts) * submodule->i_shortcuts);
for (unsigned j = 0; j < submodule->i_shortcuts; j++)
LOAD_STRING(submodule->pp_shortcuts[j]);
}
......
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