From: aurel Date: Fri, 5 Sep 2008 22:59:01 +0000 (+0000) Subject: libass: fix type mismatch between size parameter and the way it's used X-Git-Tag: 0.9.7~177 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=48b386f5d35e08e315f11457fa628d8ffce69daa;p=libass libass: fix type mismatch between size parameter and the way it's used git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27531 b3059339-0415-0410-9bf9-f77b7e298cf2 --- diff --git a/libass/ass.c b/libass/ass.c index 711d3c5..8022dfc 100644 --- a/libass/ass.c +++ b/libass/ass.c @@ -1021,7 +1021,7 @@ ass_track_t* ass_read_memory(ass_library_t* library, char* buf, size_t bufsize, return track; } -char* read_file_recode(char* fname, char* codepage, int* size) +char* read_file_recode(char* fname, char* codepage, size_t* size) { char* buf; size_t bufsize; diff --git a/libass/ass.h b/libass/ass.h index 7eccbe9..4bdea3a 100644 --- a/libass/ass.h +++ b/libass/ass.h @@ -179,7 +179,7 @@ void ass_process_codec_private(ass_track_t* track, char *data, int size); */ void ass_process_chunk(ass_track_t* track, char *data, int size, long long timecode, long long duration); -char* read_file_recode(char* fname, char* codepage, int* size); +char* read_file_recode(char* fname, char* codepage, size_t* size); /** * \brief Read subtitles from file.