projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d598ab
)
libbb: in xmalloc_fgets(), use size_t for bb_get_chunk_from_file()
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 2 Sep 2018 16:48:09 +0000
(18:48 +0200)
committer
Denys 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
patch
|
blob
|
history
diff --git
a/libbb/get_line_from_file.c
b/libbb/get_line_from_file.c
index 49ef093c2531459d294012cb54bd5c0768f46c49..903ff1fb684c6f88f7b018df5ce2ec8e2c697f00 100644
(file)
--- 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)
{
-
in
t i;
+
size_
t i;
return bb_get_chunk_from_file(file, &i);
}