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

Fix sizeof mismatch (cid #1049621)

parent e7d6279c
......@@ -326,7 +326,7 @@ size_t CacheLoad( vlc_object_t *p_this, const char *dir, module_cache_t **r )
else
{
module->pp_shortcuts =
xmalloc (sizeof (char **) * module->i_shortcuts);
xmalloc (sizeof (*module->pp_shortcuts) * module->i_shortcuts);
for (unsigned j = 0; j < module->i_shortcuts; j++)
LOAD_STRING(module->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