libbb: in xmalloc_fgets(), use size_t for bb_get_chunk_from_file()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
0d598ab9f0
commit
22a9951620
@ -47,7 +47,7 @@ char* FAST_FUNC bb_get_chunk_from_file(FILE *file, size_t *end)
|
|||||||
/* Get line, including trailing \n if any */
|
/* Get line, including trailing \n if any */
|
||||||
char* FAST_FUNC xmalloc_fgets(FILE *file)
|
char* FAST_FUNC xmalloc_fgets(FILE *file)
|
||||||
{
|
{
|
||||||
int i;
|
size_t i;
|
||||||
|
|
||||||
return bb_get_chunk_from_file(file, &i);
|
return bb_get_chunk_from_file(file, &i);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user