commit | c6b5cd8d76bdcc046295721d117eae0529aecfc1 | [log] [tgz] |
---|---|---|
author | David Turner <digit@android.com> | Wed Jun 16 17:36:32 2010 -0700 |
committer | Android Code Review <code-review@android.com> | Wed Jun 16 17:36:32 2010 -0700 |
tree | f59af56488e71793b7b580336631e4b80cd82f11 | |
parent | 4032c1e2dfcc99613fe3e509a8153191e35aec12 [diff] | |
parent | b44fcd6e8f661e7e795212a3b68aa171ab6e49c9 [diff] |
Merge "Fix for incorrect reply from sysconf(_SC_NPROCESSORS_ONLN)"
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;