commit | 22b0b56531737deb226658672569fcf38dfad5d1 | [log] [tgz] |
---|---|---|
author | Jean-Baptiste Queru <jbq@google.com> | Fri Jul 16 08:00:45 2010 -0700 |
committer | Android Code Review <code-review@android.com> | Fri Jul 16 08:00:45 2010 -0700 |
tree | c7233250afcaf4250c9015124269035aacae3ef6 | |
parent | 19299904343daf191267564fe32e6cd5c165cd42 [diff] | |
parent | 68fec9a751ee943ba1d48e5af8d68c8ff33c66d8 [diff] |
Merge "Use complete hardware name without spaces."
diff --git a/init/init.c b/init/init.c index 4d98cc2..0667593 100755 --- a/init/init.c +++ b/init/init.c
@@ -657,8 +657,9 @@ if (x) { x += 2; n = 0; - while (*x && !isspace(*x)) { - hardware[n++] = tolower(*x); + while (*x && *x != '\n') { + if (!isspace(*x)) + hardware[n++] = tolower(*x); x++; if (n == 31) break; }