am ef582bdb: merge from open-source master

Merge commit 'ef582bdb8f24197caf921af7bf7ee63503626cdd'

* commit 'ef582bdb8f24197caf921af7bf7ee63503626cdd':
  Added NEC and PMC's USB VIDs upon their request.
This commit is contained in:
The Android Open Source Project 2010-07-22 09:20:31 -07:00 committed by Android Git Automerger
commit aee3acd9e4
1 changed files with 16 additions and 0 deletions

16
patch.txt Normal file
View File

@ -0,0 +1,16 @@
diff --git a/init/util.c b/init/util.c
index 4d98cc2..0667593 100755
--- a/init/util.c
+++ b/init/util.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;
}