[vlc-commits] Fix sizeof mismatch (cid #1049621)
Rémi Duraffort
git at videolan.org
Fri Jul 19 21:12:51 CEST 2013
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Jul 19 20:58:12 2013 +0200| [b1b5a54613af68004eac4498c787b90980257f95] | committer: Rémi Duraffort
Fix sizeof mismatch (cid #1049621)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b1b5a54613af68004eac4498c787b90980257f95
---
src/modules/cache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/modules/cache.c b/src/modules/cache.c
index 6b5d247..e044549 100644
--- a/src/modules/cache.c
+++ b/src/modules/cache.c
@@ -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]);
}
More information about the vlc-commits
mailing list