Explorar el Código

libbb: in xmalloc_fgets(), use size_t for bb_get_chunk_from_file()

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko hace 5 años
padre
commit
22a9951620
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      libbb/get_line_from_file.c

+ 1 - 1
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);
 }