[vlc-commits] Fix sizeof mismatch (cid #1049621)

Rémi Duraffort git at videolan.org
Sat Jul 20 09:57:58 CEST 2013


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Jul 20 09:48:25 2013 +0200| [e977d02085d12f2f3e0e534adc43a414794cce6e] | committer: Rémi Duraffort

Fix sizeof mismatch (cid #1049621)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e977d02085d12f2f3e0e534adc43a414794cce6e
---

 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