am 038fbae5
: sysconf(): Fix line parser for /proc files.
This commit is contained in:
commit
43a3d66f13
2 changed files with 4 additions and 1 deletions
|
@ -13,6 +13,9 @@ Differences between current and Android 2.2:
|
|||
- <sys/sysinfo.h>: Added missing sysinfo() system call implementation
|
||||
(the function was already declared in the header though).
|
||||
|
||||
- sysconf() didn't work for some arguments due to a small bug in the
|
||||
/proc line parser.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
Differences between Android 2.2. and Android 2.1:
|
||||
|
||||
|
|
|
@ -317,7 +317,7 @@ line_parser_addc( LineParser* p, int c )
|
|||
static int
|
||||
line_parser_getc( LineParser* p )
|
||||
{
|
||||
if (p->in_len >= p->in_pos) {
|
||||
if (p->in_pos >= p->in_len) {
|
||||
int ret;
|
||||
|
||||
p->in_len = p->in_pos = 0;
|
||||
|
|
Loading…
Reference in a new issue