aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2010-07-16 08:00:45 -0700
committerAndroid Code Review <code-review@android.com>2010-07-16 08:00:45 -0700
commit22b0b56531737deb226658672569fcf38dfad5d1 (patch)
treec7233250afcaf4250c9015124269035aacae3ef6
parent19299904343daf191267564fe32e6cd5c165cd42 (diff)
parent68fec9a751ee943ba1d48e5af8d68c8ff33c66d8 (diff)
downloadsystem_core-22b0b56531737deb226658672569fcf38dfad5d1.tar.gz
system_core-22b0b56531737deb226658672569fcf38dfad5d1.tar.bz2
system_core-22b0b56531737deb226658672569fcf38dfad5d1.zip
Merge "Use complete hardware name without spaces."
-rwxr-xr-xinit/init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/init/init.c b/init/init.c
index 4d98cc2f..0667593e 100755
--- a/init/init.c
+++ b/init/init.c
@@ -657,8 +657,9 @@ static void get_hardware_name(void)
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;
}