Merge "Use complete hardware name without spaces."

This commit is contained in:
Jean-Baptiste Queru 2010-07-16 08:00:45 -07:00 committed by Android Code Review
commit 22b0b56531
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}