← Commit list

22a995162

Denys Vlasenko
Denys Vlasenko
2018-09-02
SUCCESS Duration: 147s

Subject

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

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

libbb/get_line_from_file.c+1 -1
@@ -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);
}