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

Rémi Duraffort git at videolan.org
Sat Jul 20 11:52:39 CEST 2013


vlc/vlc-2.1 | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Jul 19 20:58:12 2013 +0200| [8fe14ba630ec695f933bb38e4b90c65ccab9511c] | committer: Jean-Baptiste Kempf

Fix sizeof mismatch (cid #1049621)

(cherry picked from commit b1b5a54613af68004eac4498c787b90980257f95)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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