projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Simplify CRC table generation
[oweals/busybox.git]
/
libbb
/
get_line_from_file.c
diff --git
a/libbb/get_line_from_file.c
b/libbb/get_line_from_file.c
index 9035c041286752de1594927a8e488888a5355c5d..5e7062127d4c26cb9568019828f7fe64c2ea7e9c 100644
(file)
--- a/
libbb/get_line_from_file.c
+++ b/
libbb/get_line_from_file.c
@@
-45,7
+45,7
@@
extern char *get_line_from_file(FILE *file)
while (idx > linebufsz-2)
linebuf = xrealloc(linebuf, linebufsz += GROWBY);
linebuf[idx++] = (char)ch;
- if (
(char)ch == '\n
')
+ if (
ch == '\n' || ch == '\0
')
break;
}