merge from open-source master
Change-Id: I29602fecafc2b6d93b849ada89696a67cfd23353
This commit is contained in:
commit
742150c031
1 changed files with 3 additions and 2 deletions
5
init/util.c
Normal file → Executable file
5
init/util.c
Normal file → Executable file
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue