diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2010-07-16 13:37:09 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2010-07-16 13:39:30 -0700 |
commit | 742150c031756da1393bf4223b2468b17cb79326 (patch) | |
tree | 06bdee9e0662d49f929e2a30f510447dba78456a /init | |
parent | 64ba76c1431afe17c1f4553f1dbc595db064316e (diff) | |
parent | 22b0b56531737deb226658672569fcf38dfad5d1 (diff) | |
download | system_core-742150c031756da1393bf4223b2468b17cb79326.zip system_core-742150c031756da1393bf4223b2468b17cb79326.tar.gz system_core-742150c031756da1393bf4223b2468b17cb79326.tar.bz2 |
merge from open-source master
Change-Id: I29602fecafc2b6d93b849ada89696a67cfd23353
Diffstat (limited to 'init')
-rwxr-xr-x[-rw-r--r--] | init/util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/init/util.c b/init/util.c index 377754b..d8ec88e 100644..100755 --- a/init/util.c +++ b/init/util.c @@ -439,8 +439,9 @@ void get_hardware_name(char *hardware, unsigned int *revision) 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; } |