[git commit] libbb: in xmalloc_fgets(), use size_t for bb_get_chunk_from_file()

Denys Vlasenko vda.linux at googlemail.com
Sun Sep 2 16:48:09 UTC 2018


commit: https://git.busybox.net/busybox/commit/?id=22a99516206b33b7ae124d426319bab03d5c8309
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 libbb/get_line_from_file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libbb/get_line_from_file.c b/libbb/get_line_from_file.c
index 49ef093c2..903ff1fb6 100644
--- a/libbb/get_line_from_file.c
+++ b/libbb/get_line_from_file.c
@@ -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);
 }


More information about the busybox-cvs mailing list