Rémi Denis-Courmont pushed to branch master at VideoLAN / VLC


Commits:
509c0e81 by Rémi Denis-Courmont at 2024-02-19T18:47:50+00:00
modules: fix calloc() arguments

- - - - -


1 changed file:

- src/modules/cache.c


Changes:

=====================================
src/modules/cache.c
=====================================
@@ -258,7 +258,7 @@ static int vlc_cache_load_plugin_config(vlc_plugin_t 
*plugin, block_t *file)
     /* Allocate memory */
     if (lines)
     {
-        plugin->conf.params = calloc(sizeof (struct vlc_param), lines);
+        plugin->conf.params = calloc(lines, sizeof (struct vlc_param));
         if (unlikely(plugin->conf.params == NULL))
         {
             plugin->conf.size = 0;



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/509c0e816d99d05d9efc72e6d4302aa2100ad7f7

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/509c0e816d99d05d9efc72e6d4302aa2100ad7f7
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to