commit | 038fbae518e904c7aba64779714a22dbeeb90887 | [log] [tgz] |
---|---|---|
author | David 'Digit' Turner <digit@google.com> | Wed Jun 09 18:15:57 2010 -0700 |
committer | David 'Digit' Turner <digit@google.com> | Wed Jun 09 18:15:57 2010 -0700 |
tree | 713fecf819f653c56c3f8b2bae0e8e86a7afa2e6 | |
parent | 9205fdf8c689a9cb27cfb33aeb58789c7da75788 [diff] [blame] |
sysconf(): Fix line parser for /proc files. Change-Id: I2678010ee95933de19c8a8e3b2fe65ceb9b86400
diff --git a/libc/unistd/sysconf.c b/libc/unistd/sysconf.c index d3089a4..dedc5bc 100644 --- a/libc/unistd/sysconf.c +++ b/libc/unistd/sysconf.c
@@ -317,7 +317,7 @@ 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;