[MPlayer-cvslog] r37180 - trunk/gui/interface.c

ib subversion at mplayerhq.hu
Mon Apr 28 18:02:20 CEST 2014


Author: ib
Date: Mon Apr 28 18:02:20 2014
New Revision: 37180

Log:
Determine size from variable declaration.

Modified:
   trunk/gui/interface.c

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Sat Apr 26 18:32:53 2014	(r37179)
+++ trunk/gui/interface.c	Mon Apr 28 18:02:20 2014	(r37180)
@@ -116,7 +116,7 @@ static void add_vf(const char *vf, const
             vf_settings = settings;
             vf_settings[i].name    = strdup(vf);
             vf_settings[i].attribs = listDup(argvf);
-            memset(&vf_settings[i + 1], 0, sizeof(m_obj_settings_t));
+            memset(&vf_settings[i + 1], 0, sizeof(*vf_settings));
         }
     } else {
         vf_settings = calloc(2, sizeof(*vf_settings));
@@ -176,7 +176,7 @@ static void remove_vf(char *vf)
                 listFree(&vf_settings[i].attribs);
 
                 do
-                    memcpy(&vf_settings[i], &vf_settings[i + 1], sizeof(m_obj_settings_t));
+                    memcpy(&vf_settings[i], &vf_settings[i + 1], sizeof(*vf_settings));
                 while (vf_settings[++i].name);
 
                 break;


More information about the MPlayer-cvslog mailing list