Merge "system/core: delete an old patch file"

This commit is contained in:
Iliyan Malchev 2011-01-10 13:03:04 -08:00 committed by Android (Google) Code Review
commit 1cdd11c528
1 changed files with 0 additions and 16 deletions

View File

@ -1,16 +0,0 @@
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;
}