# HG changeset patch # User upsuper # Date 1353573647 0 # Node ID dccbfcc7c177b367b2004162d33dedb80e1ba4c3 # Parent 228b73274ab6a1d32539d33f17f31f8bc047a3de Use the same parameter type with malloc. Using different types here may lead to various problems during type conversion. diff -r 228b73274ab6 -r dccbfcc7c177 libmpcodecs/vf_remove_logo.c --- 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)