Commit f30f3c45 authored by Gildas Bazin's avatar Gildas Bazin

* src/misc/modules.c: oups, stupid bug.

parent 2b6863df
...@@ -1700,7 +1700,7 @@ static void CacheLoad( vlc_object_t *p_this ) ...@@ -1700,7 +1700,7 @@ static void CacheLoad( vlc_object_t *p_this )
#define LOAD_STRING(a) \ #define LOAD_STRING(a) \
{ if( fread( &i_size, sizeof(char), sizeof(i_size), file ) \ { if( fread( &i_size, sizeof(char), sizeof(i_size), file ) \
!= sizeof(i_size) ) goto error; \ != sizeof(i_size) ) goto error; \
if( i_size && i_size > 16384 ) { \ if( i_size && i_size < 16384 ) { \
a = malloc( i_size ); \ a = malloc( i_size ); \
if( fread( a, sizeof(char), i_size, file ) != (size_t)i_size ) \ if( fread( a, sizeof(char), i_size, file ) != (size_t)i_size ) \
goto error; \ goto error; \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment