Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aee3acd9 authored by The Android Open Source Project's avatar The Android Open Source Project Committed by Android Git Automerger
Browse files

am ef582bdb: merge from open-source master

Merge commit 'ef582bdb'

* commit 'ef582bdb':
  Added NEC and PMC's USB VIDs upon their request.
parents 29a96aff ef582bdb
Loading
Loading
Loading
Loading

patch.txt

0 → 100644
+16 −0
Original line number Diff line number Diff line
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;
             }