[vlc-commits] Fix sizeof mismatch (cid #1049621)
Rémi Duraffort
git at videolan.org
Sat Jul 20 11:52:40 CEST 2013
vlc/vlc-2.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Jul 20 09:48:25 2013 +0200| [8b7ab8572f9b8f6c9aed42491685be26a1fd34d0] | committer: Jean-Baptiste Kempf
Fix sizeof mismatch (cid #1049621)
(cherry picked from commit e977d02085d12f2f3e0e534adc43a414794cce6e)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=8b7ab8572f9b8f6c9aed42491685be26a1fd34d0
---
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 e044549..5d9651f 100644
--- a/src/modules/cache.c
+++ b/src/modules/cache.c
@@ -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]);
}
More information about the vlc-commits
mailing list