libbb: in xmalloc_fgets(), use size_t for bb_get_chunk_from_file()
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 2 Sep 2018 16:48:09 +0000 (18:48 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 2 Sep 2018 16:48:09 +0000 (18:48 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/get_line_from_file.c

index 49ef093c2531459d294012cb54bd5c0768f46c49..903ff1fb684c6f88f7b018df5ce2ec8e2c697f00 100644 (file)
@@ -47,7 +47,7 @@ char* FAST_FUNC bb_get_chunk_from_file(FILE *file, size_t *end)
 /* Get line, including trailing \n if any */
 char* FAST_FUNC xmalloc_fgets(FILE *file)
 {
-       int i;
+       size_t i;
 
        return bb_get_chunk_from_file(file, &i);
 }