changeset 35345:dccbfcc7c177

Use the same parameter type with malloc. Using different types here may lead to various problems during type conversion.
author upsuper
date Thu, 22 Nov 2012 08:40:47 +0000
parents 228b73274ab6
children 9eeba22fd78a
files libmpcodecs/vf_remove_logo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_remove_logo.c	Wed Nov 21 21:44:49 2012 +0000
+++ b/libmpcodecs/vf_remove_logo.c	Thu Nov 22 08:40:47 2012 +0000
@@ -170,7 +170,7 @@
  * of how MPlayer works, it cannot safely halt execution, but at least the user
  * will get an error message before the segfault happens.
  */
-static void * safe_malloc(int size)
+static void * safe_malloc(size_t size)
 {
   void * answer = malloc(size);
   if (answer == NULL)