am 742150c0: merge from open-source master
Merge commit '742150c031756da1393bf4223b2468b17cb79326' * commit '742150c031756da1393bf4223b2468b17cb79326': Use complete hardware name without spaces.
This commit is contained in:
commit
f13c2ba5f8
|
@ -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 New Issue