summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rwxr-xr-x[-rw-r--r--]init/util.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/init/util.c b/init/util.c
index 377754b..d8ec88e 100644..100755
--- a/init/util.c
+++ b/init/util.c
@@ -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;
}